Skip to content

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

@DManowitz

Description

@DManowitz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions