Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.feature_selection import VarianceThreshold
- # variance selection method, the return value is the data after the feature selection
- #Parameter threshold is the threshold of variance
- VarianceThreshold(threshold=3).fit_transform(iris.data)
Add Comment
Please, Sign In to add comment