sklearn的precision_score, recall_score, f1_score使用
from sklearn.metrics import precision_score, recall_score, f1_scorey_true = [0, 1, 1, 0, 1, 0]y_pred = [1, 1, 1, 0, 0, 1]p = precision_score(y_true, y_pred, average='binary')r = recall_score(y_t
原创
2017-07-12 09:23:28 ·
28933 阅读 ·
1 评论