Guest User

Untitled

a guest
Jul 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. from sklearn.feature_selection import SelectFromModel
  2.  
  3. #Logo regression with L1 and L2 penalty terms as feature selection of the base model
  4. #Parameter threshold is the threshold of the difference between the weight coefficients
  5. SelectFromModel(LR(threshold=0.5, C=0.1)).fit_transform(iris.data, iris.target)
Add Comment
Please, Sign In to add comment