【问题标题】:How can I install "calibration" function from the sklearn package?如何从 sklearn 包中安装“校准”功能?
【发布时间】:2015-04-26 15:24:35
【问题描述】:

使用校准时出现以下错误:

from sklearn.calibration import CalibratedClassifierCV

clf_sigmoid = CalibratedClassifierCV(clf, cv=2, method='sigmoid')

ImportError: No module named calibration

默认情况下校准不在 sklearn 包中。我在 Mac 上使用 python 2.7 不知名 anaconda

有什么帮助吗?

Rgds 瓦莱里奥

【问题讨论】:

标签: python calibration


【解决方案1】:

只需安装最新版本的 scikit-learn。

sudo pip install -U scikit-learn

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-15
    • 1970-01-01
    • 1970-01-01
    • 2018-10-18
    • 1970-01-01
    • 1970-01-01
    • 2012-01-05
    • 1970-01-01
    相关资源
    最近更新 更多