0

In below Code, Both SMOTEENN and IsolationForest give me This error

ML_MODEL=XGBClassifier()
NORMALIZER=QuantileTransformer(n_quantiles=(int(len(X))),output_distribution="normal")
SAMPLING_ALGORITHM=SMOTEENN()
OUTLIER_ALGORITHM=IsolationForest(contamination=0.1)
FEATURE_SELECTION=SelectFromModel(RandomForestClassifier(), max_features=10)

pipe=make_pipeline(NORMALIZER,SAMPLING_ALGORITHM,OUTLIER_ALGORITHM,FEATURE_SELECTION,ML_MODEL)
pipe.fit(X.values,y.values)

Can I use all mentioned algorithms with make_pipeline? If yes, then how? Otherwise, how to implement mentioned algorithms together?

NZJL
  • 115
  • 9

0 Answers0