Explore Library
Code QuizIntermediate

Removing Low-Variance Features

Spot why the variance-threshold selector doesn't actually return reduced data.

Codepython
from sklearn.feature_selection import VarianceThreshold

sel = VarianceThreshold(threshold=0.0)
X_reduced = sel.fit(X)

What is the bug in this code?