I am running different machine learning models on my data set. I am using sklearn pipelines to try different transforms on the numeric features to evaluate if one transformation gives better results. The basic structure I am using is simple:
from sklearn.pipeline import Pipeline
from sklearn.ensemble import RandomForestClassifier
from sklearn.preprocessing import StandardScalar
pipe = Pipeline(steps=[('stdscaler', StandardScaler()), ('clf', RandomForestClassifier())])
pipe.fit(X_train, y_train)
I am trying a bunch of transformations but I also want to test the scenario where no transformation are performed on the numeric feature set (i.e. features are used as is). Is there a way to include that within the pipeline? Something like:
pipe = Pipeline(steps=[('do nothing', do_nothing()), ('clf', RandomForestClassifier())])