MulaiMulai sekarang secara gratis

Random forest for feature selection

Now lets use the fitted random model to select the most important features from our input dataset X.

The trained model from the previous exercise has been pre-loaded for you as rf.

Latihan ini adalah bagian dari kursus

Dimensionality Reduction in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Create a mask for features importances above the threshold
mask = ____

# Prints out the mask
print(mask)
Edit dan Jalankan Kode