GGiecold-zz / Cluster_Ensembles

A package for combining multiple partitions into a consolidated clustering. The combinatorial optimization problem of obtaining such a consensus clustering is reformulated in terms of approximation algorithms for graph or hyper-graph partitioning.
MIT License
69 stars 43 forks source link

jaccard_similarity_score import error #20

Open Yanwen-Wang opened 3 years ago

Yanwen-Wang commented 3 years ago

Hi, when I update my scikit-learn and then using Cluster_Ensembles package, an error happened: _ImportError: cannot import name 'jaccard_similarityscore' 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 https://github.com/DiamondLightSource/SuRVoS/issues/103.

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

nina23bom commented 2 years ago

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