【发布时间】:2014-03-28 03:51:39
【问题描述】:
Scikit 分类报告将仅显示两位数的精度和召回分数。是否有可能让它在点后显示 4 位数字,我的意思是而不是 0.67 来显示 0.6783?
from sklearn.metrics import classification_report
print classification_report(testLabels, p, labels=list(set(testLabels)), target_names=['POSITIVE', 'NEGATIVE', 'NEUTRAL'])
precision recall f1-score support
POSITIVE 1.00 0.82 0.90 41887
NEGATIVE 0.65 0.86 0.74 19989
NEUTRAL 0.62 0.67 0.64 10578
另外,我应该担心 1.00 的精度分数吗?谢谢!
【问题讨论】:
标签: python machine-learning scikit-learn classification svm