IniziaInizia gratis

Understanding the components

You'll apply PCA to the numeric features of the Pokemon dataset, poke_df, using a pipeline to combine the feature scaling and PCA in one go. You'll then interpret the meanings of the first two components.

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

Questo esercizio fa parte del corso

Dimensionality Reduction in Python

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Build the pipeline
pipe = Pipeline([('scaler', ____),
        		 ('reducer', ____(____))])
Modifica ed esegui il codice