混淆矩阵
一般用混淆矩阵来看分类器的表现,概念相对简单.
基本数据:
- true positives (TP): These are cases in which we predicted yes (they have the disease), and they do have the disease.
- true negatives (TN): We predicted no, and they don't have the disease.
- false positives (FP): We predicted yes, but they don't actually have the disease. (Also known as a "Type I error.")
- false negatives (FN): We predicted no, but they actually do have the disease. (Also known as a "Type II error.")
指标:
- 正确率 Accuracy:(TP+TN)/total
- 错误率 Misclassification Rate:(FP+FN)/total
- True Positive Rate: TP/actual yes
- False Positive Rate: FP/actual no
- Specificity: TN/actual no
- Precision: TP/predicted yes
- Prevalence: actual yes/total
Change log
- 2017.10.28 创建