Skip to content
New issue

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

Is sklearn deprecation preventing treeFarms pip3 installation? #4

Open
trevor-fitzpatrick opened this issue Feb 17, 2024 · 1 comment

Comments

@trevor-fitzpatrick
Copy link

Hi,
It looks like the setup.py for treeFarms has been updated for the deprecation of sklearn.
On Mac OSX both python 3.11.7 (pip 24.0) and python 3.7.16 (pip 22.3.1) and Windows 3.11.7 this fails at installing treefarms.
The dependencies are installed correctly with no error.

pip3 install attrs packaging editables pandas scikit-learn sortedcontainers gmpy2 matplotlib

However:

pip3 install treefarms
ERROR: Could not find a version that satisfies the requirement treefarms (from versions: none)
ERROR: No matching distribution found for treefarms

Unfortunately updating pip (per the main page Installation) does not resolve the issue. Any ideas? Could it be related to TreeFarms being based on GOSDT-Guesses?

@fitzpat-t
Copy link

Hi, this is whats needed to fix on the main repo - replace sklearn with scikit-learn in requirements/setup files. This affects other interpretable ml packages including GOSDT, OSRT. This is detailed here

  • use pip install scikit-learn rather than pip install sklearn
  • replace sklearn by scikit-learn in your pip requirements files (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
  • if the sklearn package is used by one of your dependencies it would be great if you take some time to track which package uses sklearn instead of scikit-learn and report it to their issue tracker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants