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.解决方
文章共66字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
错误: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)