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

[BUG] Exception with scikit-learn >=1.3.0 #76

Open
DManowitz opened this issue Jan 19, 2024 · 2 comments
Open

[BUG] Exception with scikit-learn >=1.3.0 #76

DManowitz opened this issue Jan 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@DManowitz
Copy link

Describe the bug
This package raises an exception when trying to import hcrystallball.metrics with scikit-learn >=1.3.0

To Reproduce
install hcrystallball into a new (Python >=3.8) environment along with scikit-learn>=1.3.0.
Attempt to import hcrystallball.metrics

Note the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\...\lib\site-packages\hcrystalball\metrics\__init__.py", line 1, in <module>
    from ._scorer import get_scorer
  File "C:\...\lib\site-packages\hcrystalball\metrics\_scorer.py", line 5, in <module>
    from sklearn.metrics import SCORERS
ImportError: cannot import name 'SCORERS' from 'sklearn.metrics' (C:\...\lib\site-packages\sklearn\metrics\__init__.py)

Expected behavior
no exception

Screenshots
N/A

Additional context
SCORERS has been removed from sklearn.metrics as of 1.3.0

@DManowitz DManowitz added the bug Something isn't working label Jan 19, 2024
@SmirnGregHM
Copy link
Collaborator

Hello @DManowitz! Thank you for the interest in hcrystalball

  1. The project is currently not maintained. Our team shifted to work with another open source package, sktime, which is actively maintained.
  2. We have encountered this issue, too, and resolved it with Update for new python, pandas, and sklearn versions #75. It did not pass the pipeline though, and we don't have enough resources to investigate it. You can use the wheel under git+https://github.com/heidelbergcement/hcrystalball.git@python-update, but we also can't guarantee that the branch will leave forever.
  3. If you have interest in hcrystalball, you are free to fork it and maintain it under MIT license.

I leave the issue open so other people can find this information on top of the issues list.

@DManowitz
Copy link
Author

@SmirnGregHM, if this project is not currently maintained, I think you should at least add this information to the top of the README so that it is obvious to anyone who looks at this repo. You might also want to archive the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants