THU-HyperG icon indicating copy to clipboard operation
THU-HyperG copied to clipboard

No module named 'sklearn.cluster.spectral'

Open gejinhuan opened this issue 4 years ago • 5 comments

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!

gejinhuan avatar Apr 20 '22 14:04 gejinhuan

请问解决了吗我也遇到了

zjtggssg avatar May 26 '22 11:05 zjtggssg

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

ouweiting avatar Jul 02 '22 06:07 ouweiting

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

LWShowTime avatar Jul 22 '22 08:07 LWShowTime

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

Gemaxis avatar Mar 20 '23 11:03 Gemaxis

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"

Cdd-zz avatar Mar 11 '24 08:03 Cdd-zz