Is the scorer .score method uses determined by scoring parameter in the estimator?

  • MNE version: e.g. 0.24.0
  • operating system: linux

Hey! guys,
Here is my code snippet:

clf = make_pipeline(
            StandardScaler(), # Z-score data, because gradiometers and magnetometers have different scales
            LogisticRegression(random_state=42, n_jobs=n_jobs, max_iter=1000))

slid = GeneralizingEstimator(clf, n_jobs=n_jobs, scoring='roc_auc', verbose=True)

slid.fit(training_data, training_labels)

score = slid.score(test_data, test_label)

so my question is whether the ‘score’ obtained above is roc_auc because I set the scoring=‘roc_auc’ in the GeneralizingEstimator(), and the .score method determined which scorer to used based on the scoring parameter in the GeneralizingEstimator() function, is this true? I’m confused about this for a long time.