Open TomLaMantia opened 4 years ago
Agreed this is a simple fix that should be implemented!
I made a quick fix at this repo in the meantime. It's runnable with pip install git+https://github.com/csinva/interpretability-implementations-demos
and then from imodels import SkopeRules
.
thanks for reporting, don't hesitate to open a PR fixing this
@ngoix I believe I do not have write permissions to create a new branch for this.
you need to clone this repo and create your branch on your clone - same as described in scikit-learn how to contribute
@ngoix thanks! PR is open now: https://github.com/scikit-learn-contrib/skope-rules/pull/46
Hi, this bug is still happening in the last version available in PyPi (1.0.1) It's not happening when installing from github though
I'd be happy to assist with a PiPy deployment if that would be helpful to the project?
Hi, we also had the same issue now. A way arround can be found here: https://stackoverflow.com/questions/61867945/python-import-error-cannot-import-name-six-from-sklearn-externals
Before importing something you can do: import six import sys sys.modules['sklearn.externals.six'] = six
A solution proposed in there for developer of sklearn seems to be Replace "from sklearn.externals import six" by "import six"
Is somebody going to fix that at some point because it is really confusing to download a package and it initially does not work.
Best regards, David
Since
sklearn.externals.six
is deprecated as of version 0.23 (https://github.com/scikit-learn/scikit-learn/pull/12916/files), a fresh install of skopes with the latest version of sklearn will yield the following error:when running
from skrules import SkopeRules
, on line12
ofskope_rules.py
.Would it make sense to rely on the official version of six as the documentation suggests? If this is something the community is interested in, I'd be happy to open a PR.
The usage of six seems to be extremely minimal in this project, so the PR seems straightforward, assuming that I am not overlooking any complexities?