指标 | 描述 | Scikit-learn函数 |
---|---|---|
Confusion Matrix | 混淆矩阵 | from sklearn.metrics import confusion_matrix |
Precision | 精确率 | from sklearn.metrics import precision_score |
Recall | 召回率 | from sklearn.metrics import recall_score |
F1 | F1值 | from sklearn.metrics import f1_score |
ROC | ROC曲线 | from sklearn.metrics import roc |
AUC | ROC曲线下的面积 | from sklearn.metrics import auc |