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

**URL:** <https://mne.discourse.group/t/is-the-scorer-score-method-uses-determined-by-scoring-parameter-in-the-estimator/4457>\
**Category:** Support & Discussions\
**Created:** [February 23, 2022, 2:12pm UTC](https://mne.discourse.group/t/is-the-scorer-score-method-uses-determined-by-scoring-parameter-in-the-estimator/4457 "2022-02-23T14:12:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuZhou](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/yuzhou/32/76_2.png) [@YuZhou](https://mne.discourse.group/u/YuZhou)\
**Post date:** [February 23, 2022, 2:12pm UTC](https://mne.discourse.group/t/is-the-scorer-score-method-uses-determined-by-scoring-parameter-in-the-estimator/4457/1 "2022-02-23T14:12:05Z")

</div>

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

Hey! guys,  
Here is my code snippet:

```python
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.
