代码如下
from sklearn.cluster import Brich
print('开始聚类:')
clusterer = Brich(n_clusters=k)
y=clusterer.fit_predict(X)
print('输出聚类结果:')
print(y)
运行结果:
报错
ImportError: cannot import name 'brich' from 'sklearn.cluster' (G:\a\lib\site-packages\sklearn\cluster_init.py)
各位这要怎么解决呀