Skip to content

Process function crashes expecting a classifier when using MDM from pyRiemann #815

@BRomans

Description

@BRomans

I am evaluating the sota pipelines for P300 on the MOABB results page.
However, the MDM step returns the following error

ValueError: Pipeline should either be a classifier to be used with response_method=predict_proba or the response_method should be 'predict'. Got a regressor with response_method=predict_proba instead.

Am I doing something wrong or did something break with scikit / pyriemann updates?

`
pipelines["XdwCov+TS+SVM"] = make_pipeline(
XdawnCovariances(nfilter=2, classes=[labels_dict["Target"]], estimator="oas", xdawn_estimator="scm"),
TangentSpace(),
StandardScaler(),
SVC(C=1, kernel="linear", probability=True)
)

pipelines["Xdw+LDA"] = make_pipeline(
    Xdawn(nfilter=2, estimator="oas"),
    Vectorizer(),
    LDA(solver="lsqr", shrinkage="auto"),
)

pipelines["XdwCov+MDM"] = make_pipeline(
    XdawnCovariances(nfilter=2, classes=[labels_dict["Target"]], estimator="oas", xdawn_estimator="scm"),
    MDM()
)

`

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