I am trying to fit a RandomForestClassifier, like this.
from sklearn.pipeline import make_pipeline pipe = make_pipeline(col_trans, rf_classifier) pipe.fit(X_train