ComeçarComece de graça

Selecting the proportion of variance to keep

You'll let PCA determine the number of components to calculate based on an explained variance threshold that you decide.

You'll work on the numeric ANSUR female dataset pre-loaded as ansur_df.

All relevant packages and classes have been pre-loaded too (Pipeline(), StandardScaler(), PCA()).

Este exercício faz parte do curso

Dimensionality Reduction in Python

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Pipe a scaler to PCA selecting 80% of the variance
pipe = ____([('scaler', ____),
        		 ('reducer', ____)])
Editar e executar o código