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

jaccard_similarity_score import error #20

Open
Yanwen-Wang opened this issue Mar 24, 2021 · 1 comment
Open

jaccard_similarity_score import error #20

Yanwen-Wang opened this issue Mar 24, 2021 · 1 comment

Comments

@Yanwen-Wang
Copy link

Hi, when I update my scikit-learn and then using Cluster_Ensembles package, an error happened:
ImportError: cannot import name 'jaccard_similarity_score' from 'sklearn.metrics'

Now I solved this problem, I go to my C:\Users\china\Anaconda3\Lib\site-packages\Cluster_Ensembles folder, modify "Cluster_Ensembles.py" file's 37 line,
from: from sklearn.metrics import jaccard_similarity_score
to: from sklearn.metrics import jaccard_score
then it is solved, reference by DiamondLightSource/SuRVoS#103.

Maybe you can modify this sentence by scikit-learn version selection.

@nina23bom
Copy link

Thanks! I was searching how to solve the same problem.

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