Computer scienceData scienceInstrumentsScikit-learnData preprocessing with scikit-learn

Principal component analysis in scikit-learn

Scree plot

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().

Draw the scree plot.

What is the minimum number of PC's which would explain 90% of the initial variance?

Enter the number below.

Enter a number
___

Create a free account to access the full topic