We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal example:
>>> import sklearn >>> sklearn.__version__ 1.0.1 >>> import skrules --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-3-195b491d5645> in <module> ----> 1 import skrules ~/.virtualenvs/risk-modeling/lib/python3.9/site-packages/skrules/__init__.py in <module> ----> 1 from .skope_rules import SkopeRules 2 from .rule import Rule, replace_feature_name 3 4 __all__ = ['SkopeRules', 'Rule'] ~/.virtualenvs/risk-modeling/lib/python3.9/site-packages/skrules/skope_rules.py in <module> 10 from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor 11 from sklearn.ensemble import BaggingClassifier, BaggingRegressor ---> 12 from sklearn.externals import six 13 from sklearn.tree import _tree 14 ImportError: cannot import name 'six' from 'sklearn.externals' (/home/mwintner/.virtualenvs/risk-modeling/lib/python3.9/site-packages/sklearn/externals/__init__.py)
According to some stackoverflow sources like this one, six is not in sklearn.externals beyond sklearn v0.23.
six
sklearn.externals
The text was updated successfully, but these errors were encountered:
Replace line from sklearn.externals import six with import six. Solved the problem.
from sklearn.externals import six
import six
skope-rules==1.0.1 python==3.10
Sorry, something went wrong.
No branches or pull requests
Minimal example:
According to some stackoverflow sources like this one,
six
is not insklearn.externals
beyond sklearn v0.23.The text was updated successfully, but these errors were encountered: