Why do I get different values with pipline and without pipline in sklearn in python
I am using recursive feature elimination with cross-validation (rfecv) with GridSearchCV with RandomForest classifier as follows using pipeline and without using pipeline . My code with pipeline is as follows. X = df[my_features_all] y = df['gold_standard'] #get development and testing sets x_train, x_test, y_train, y_test = train_test_split(X, y, random_state=0) from sklearn.pipeline import Pipeline #cross validation setting k_fold = StratifiedKFold(n_splits=5, shuffle=True, random_state=0) #this is the classifier used for feature selection clf_featr_sele = RandomForestClassifier(random_state