8000 ENH: specify scoring in search light · Issue #3475 · mne-tools/mne-python · GitHub
[go: up one dir, main page]

Skip to content 10000
ENH: specify scoring in search light #3475
@kingjr

Description

@kingjr

Currently SearchLight.score() uses the scorer of the base_estimator.

Typically we would like to change the scoring, e.g. to use an AUC for a logistic regression, I was thinking of doing the following API:

sl = SearchLight(LogisticRegression(), scoring=my_scorer())
sl.fit(X, y).score(X, y)

An alternative is to change the estimator directly e.g.

clf = ChangerScorer(LogisticRegression(), my_scorer())
sl = SearchLight(clf)
sl.fit(X, y).score(X, y)

What I'm unclear is how to adapt the predict method as a function of the scoring metrics, and whether this should be done automatically.

Anyone has a clear idea how what would be the most sklearn way of doing it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0