【发布时间】:2012-05-06 07:51:56
【问题描述】:
我想在 python 中使用 svm 分类器找出错误率,我采取的方法是:
1-svm.predict(test_samples).mean()
但是,这种方法行不通。 sklearn 的 score 函数也给出了平均准确率......但是,我不能使用它,因为我想完成交叉验证,然后找到错误率。请在 sklearn 中建议一个合适的函数来找出错误率。
【问题讨论】:
-
svm.predict 不给你分类的输出吗?为什么取平均值会做任何有用的事情?
标签: python machine-learning svm scikits scikit-learn