E:\anaconda3\lib\site-packages\sklearn\cluster\_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( E:\anaconda3\lib\site-packages\sklearn\cluster\_kmeans.py:1382: UserWarning: KMeans is known to have a memory leak on Windows with MKL, when there are less chunks than available threads. You can avoid it by setting the environment variable OMP_NUM_THREADS=2. warnings.warn(
时间: 2023-10-09 15:13:46 浏览: 399
Anaconda3-5.2.0-Windows-x86_64.rar
这些警告信息是关于sklearn库中KMeans聚类算法的未来变化和已知的内存泄漏问题。警告信息中提到的默认值`n_init`将在未来版本中从10更改为'auto',建议明确设置`n_init`的值以抑制警告。另外,对于Windows系统使用MKL时,KMeans算法在可用线程数多于数据块数时可能存在内存泄漏问题,可以通过设置环境变量`OMP_NUM_THREADS=2`来避免该问题。
阅读全文