sklearn Kmeans聚类算法遇到的错误py:870: FutureWarning: The default value of n_init
will change from 10 to ‘auto’ in 1.4. Set the value of n_init
explicitly to suppress the warning warnings.warn(
遇到如上错误找到如下解决方法:
大概就是sklearn 1.4版更新
我们将n_init= 'auto’输入即可
结果如下
来源地址:https://blog.csdn.net/weixin_48160438/article/details/129861190