BaşlayınÜcretsiz Başlayın

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

Bu egzersiz

Dimensionality Reduction in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Pipe a scaler to PCA selecting 80% of the variance
pipe = ____([('scaler', ____),
        		 ('reducer', ____)])
Kodu Düzenle ve Çalıştır