Closed Nick18899 closed 1 year ago
After trying to use such code: from mlinsights.mlmodel import PredictableTSNE I got this error:
from mlinsights.mlmodel import PredictableTSNE
/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)
/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)
Which version of scikit-learn are you using? I'm currently refactoring the package. This should be fixed soon.
I just released a new verions. I'll close the issue. Feel free to reopen it.
After trying to use such code:
from mlinsights.mlmodel import PredictableTSNE
I got this error: