![cover](https://img-blog.csdnimg.cn/img_convert/77fcfea2a41749d7867f62f0e98b01ca.png)
UserWarning: KMeans is known to have a memory leak on Windows with MKL, when there are less chunks t
·
错误: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=1.
解决方法:在py文件的开头添加
import os
os.environ["OMP_NUM_THREADS"] = '1'
更多推荐
所有评论(0)