python报错集锦

2022-09-19  本文已影响0人  千容安

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版本不行

上一篇下一篇

猜你喜欢

热点阅读