sdpython / mlinsights

Extends scikit-learn with new models, transformers, metrics, plotting.
http://www.xavierdupre.fr/app/mlinsights/helpsphinx/index.html
MIT License
69 stars 13 forks source link

Import-issue in Predictable t-SNE #119

Closed Nick18899 closed 1 year ago

Nick18899 commented 1 year ago

After trying to use such code: from mlinsights.mlmodel import PredictableTSNE I got this error:

/usr/local/lib/python3.10/dist-packages/sklearn/ensemble/_bagging.py in 14 import numpy as np 15 ---> 16 from ..base import ClassifierMixin, RegressorMixin, _fit_context 17 from ..metrics import accuracy_score, r2_score 18 from ..tree import DecisionTreeClassifier, DecisionTreeRegressor

ImportError: cannot import name '_fit_context' from 'sklearn.base' (/usr/local/lib/python3.10/dist-packages/sklearn/base.py)

sdpython commented 1 year ago

Which version of scikit-learn are you using? I'm currently refactoring the package. This should be fixed soon.

xadupre commented 1 year ago

I just released a new verions. I'll close the issue. Feel free to reopen it.