Will the test data set undergo all the operation in clf?

  • MNE version: e.g. 0.24.0

Hey guys!
I have a naive question in this tutorial:

specifically in this part:

clf = make_pipeline(


    LogisticRegression(solver='liblinear')  # liblinear is faster than lbfgs


time_gen = GeneralizingEstimator(clf, scoring='roc_auc', n_jobs=None,


# Fit classifiers on the epochs where the stimulus was presented to the left.

# Note that the experimental condition y indicates auditory or visual


             y=epochs['Left'].events[:, 2] > 2)

scores = time_gen.score(X=epochs['Right'].get_data(),
                        y=epochs['Right'].events[:, 2] > 2)

my question is will the data of the test set epochs['Right'].get_data() will be standardized using StandardScaler() in clf or only the training data epochs['Left'].get_data() set will be standardized? :thinking:

Yes test with undergo the same preprocessing

It’s the scikit-learn pipeline API


1 Like