iMoonLab / THU-HyperG

MIT License
107 stars 21 forks source link

No module named 'sklearn.cluster.spectral' #6

Open gejinhuan opened 2 years ago

gejinhuan commented 2 years ago

I got this issue when I was running the example included in the package. Actually, I have installed the updated version of sklearn and scikit-learn. I have tried python37, 39 and 10 versions, but the issue is still happened. My OS is macos and the environment is Jupyter-lab. Thanks!

zjtggssg commented 2 years ago

请问解决了吗我也遇到了

ouweiting commented 2 years ago

I solved this by using Python3.6 and sklearn0.19.0

LWShowTime commented 2 years ago

You guys can run the sample code? Where did you find the dataset?

Gemaxis commented 1 year ago

This issue can be solved by installing python==3.6 && sklearn==0.19.0(Command: pip install scikit-learn==0.19)

Cdd-zz commented 7 months ago

if you cannot find spectral, maybe check the folder of sklearn when you run "import sklearn.cluster.spectral". I found that my folder did not have "spectral.py" but have "_spectral.py" and I found “discretize”. Then I change the code with "_spectral"