Computer scienceData scienceInstrumentsScikit-learnData preprocessing with scikit-learn

Principal component analysis in scikit-learn

Cumulative explained variance

Report a typo

Import Breast Cancer dataset from sklearnwith the following code:

from sklearn.datasets import load_breast_cancer
data = load_breast_cancer(as_frame=True)
X = data['data']

Scale data with the StandartScaler().

Run the PCA. What proportion of variance is explained by the first 5 PC's?

Enter the number below. E.g., 0.8356

Enter a number
___

Create a free account to access the full topic