python报错集锦

No module named 'tqdm.auto'
pip3 install -U tqdm


No module named 'sklearn.impute'
更新完sklearn还是0.19.0,网上都说版本太低,要0.22.0才行,
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple sklearn==0.22.0
但是:

更新了pip也不行
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade scikit-learn

pip install --upgrade scikit-learn==0.22.0 -i https://pypi.tuna.tsinghua.edu.cn/simple --user

但还是No module named 'sklearn.impute'
重启内核后解决


ExplainerError: Additivity check failed in TreeExplainer! Please ensure the data matrix you passed to the explainer is the same shape that the model was trained on. If your data shape is correct then please report this on GitHub. Consider retrying with the feature_perturbation='interventional' option. This check failed because for one of the samples the sum of the SHAP values was 0.891390, while the model output was 0.884963. If this difference is acceptable you can set check_additivity=False to disable this check.

不能读ab的tsv,可能是因为这两个组不能建分类器


Cannot interpret '<attribute 'dtype' of 'numpy.generic' objects>' as a data type
因为传入的文件内容有问题,不是numpy版本不行

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容