【发布时间】:2021-03-12 08:09:56
【问题描述】:
我有一个不平衡的数据集,我正在尝试进行二进制分类。我最终使用了几种算法CatBoostClassifier 和lightgbm 给了我比较好的结果。我有一个关于classification_report 和confusion_matrix 的问题要问。
从我的classification_report 可以看出:
-True Negatives: 1076,
-False Positives: 0,
-False Negatives: 1,
-True Positives:6.
Sensitivity : 0.86 和 Specificity 1.00 ,这意味着我的 false positive rate 是 0.0。
我认为它确实表现得非常好。
来自classification_report 是否告诉您我的模型可能过度拟合或确实表现良好?
我问这个是因为1 类的support(数量较少)是7,而0 类的0 是1076。
来自link 它说:“支持是该类中真实响应的样本数。”但我真的不明白这里的意思。 p>
谁能向我解释或让我知道我的算法是否过拟合或表现良好?
标签比例:
0 5550
1 60
分类报告
precision recall f1-score support
0.0 1.00 1.00 1.00 1076
1.0 1.00 0.86 0.92 7
accuracy 1.00 1083
macro avg 1.00 0.93 0.96 1083
weighted avg 1.00 1.00 1.00 1083
混淆矩阵:
[[1076 0]
[ 1 6]]
【问题讨论】:
标签: scikit-learn binary classification confusion-matrix