美文网首页
python报错集锦

python报错集锦

作者: 千容安 | 来源:发表于2022-09-19 22:10 被阅读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版本不行

    相关文章

      网友评论

          本文标题:python报错集锦

          本文链接:https://www.haomeiwen.com/subject/kytmortx.html