You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Process function crashes expecting a classifier when using MDM from pyRiemann #815
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?
@BRomans : if you can't downgrade scikit-learn, using pyriemann==0.9 with scikit-learn == 1.6.1 is OK,
because the MRO issue was fixed in pyriemann 0.8.
Can confirm it works, however I had to force -install some stuff because there were multiple clashes with MOABB requirements and NumPy. For now it's sufficient.
Activity
qbarthelemy commentedon Sep 10, 2025
@BRomans, can you share some minimal code to reproduce the bug, with the versions of python, moabb and pyriemann you are using?
gcattan commentedon Sep 10, 2025
and version of sklearn. This could be an issue with cross validation with latest versions of sklearn.
BRomans commentedon Sep 18, 2025
Hi, here you are a very basic example taken from MOABB tutorials in which I added the MDM() classifier.
moabb_test.py
scikit-learn == 1.6.1
pyriemann == 0.7
Python 3.10.8
gcattan commentedon Sep 18, 2025
Moabb depends on sklearn <1.6
Can you downgrade your version of sklearn ?
qbarthelemy commentedon Sep 18, 2025
@gcattan is right: if you use
moabbwith the correct version of the dependencies, there is no error.qbarthelemy commentedon Sep 19, 2025
@BRomans : if you can't downgrade
scikit-learn, usingpyriemann==0.9withscikit-learn == 1.6.1is OK,because the MRO issue was fixed in
pyriemann 0.8.BRomans commentedon Sep 26, 2025
Can confirm it works, however I had to force -install some stuff because there were multiple clashes with MOABB requirements and NumPy. For now it's sufficient.