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'
更多推荐
已为社区贡献1条内容
所有评论(0)