我需要从https://github.com/jasonlaska/spherecluster导入模块"spherecluster“。我得到以下错误: ModuleNotFoundError: No module named 'sklearn.cluster.k_means_' 我发现k_means_在未来的版本中被重命名了。(代码结构已更改) 如何解决这个问题? 我是否需要完全重写spherecluster中的代码才能与当前sklearn</e
我甚至试着看了the sklearn documentation,但我仍然不能得到它。下面是我导入的内容: import numpy as npimport random as rdfrom sklearn import preprocessing
from sklearn import svm 我在前面的程序中定义了"kfold“: kfold =
这发生在我使用sklearn的时候->>> sklearn.preprocessing.normalize # <-- would throw error File "<stdin>", line 1, in <module>
AttributeError: module 'sklearn' hasno at