rfecv recursive feature elimination
from sklearn.feature_selection import RFECV rfecv = RFECV( estimator=model, step=2, scoring="accuracy", min_features_to_select=8, n_jobs=-1, ) rfecv.fit(df, y) print("Selected Features",rfecv.n_features_)
Not a member yet? Register now
Are you a member? Login now