Closed michaelkalz closed 2 weeks ago
Please provide a minimal code example where the error occurs. Have you found a workaround that actually works?
It occurred during the import part from here
from sklearn.model_selection import ShuffleSplit, KFold
from sklearn.datasets import load_breast_cancer
from photonai.base import Hyperpipe, PipelineElement, Switch
from photonai.optimization import IntegerRange, FloatRange
Downgrading imbalanced-learn==0.9.1
worked
Which version of photonai is used? Please update to photonai 2.3.0
AttributeError: module 'sklearn.metrics._dist_metrics' has no attribute 'DatasetsPair'
seems to occur when usingimbalanced-learn>0.9.1
. It took quite some time to find this "workaround" based on this as photonai asks forscikit-learn==1.1.3
and simply downgrading it toscikit-learn==1.1.0
(as suggested) did not work at all.