代价矩阵和混淆矩阵_对混淆矩阵感到困惑

代价矩阵和混淆矩阵

Confusion matrix is an N*N matrix (N = number of target classes) consisting a count of predicted and actual target values. It helps in evaluating the performance of a classification model.

混淆矩阵是一个N * N矩阵(N =目标类别数),由预测和实际目标值组成。 它有助于评估分类模型的性能。

Let’s take a look at a confusion matrix for binary classification to understand the terminology used.

让我们看一下二进制分类的混淆矩阵,以了解所使用的术语。

Image for post
source: author
资料来源:作者

Whether a mail is spam or not, if a patient is diabetic or not, if a customer will churn out or not — these are some examples of binary classification. Say our classification model tells us if the animal is a dog or a cat. The null hypothesis or positive statement for this example being “Dog” and the negative statement “Cat”.

无论邮件是否为垃圾邮件,是否为糖尿病患者,以及客户是否会流失-这些都是二进制分类的示例。 说我们的分类模型告诉我们动物是狗还是猫。 此示例的零假设或肯定陈述为“狗”否定陈述为“猫”

Image for post
source: author
资料来源:作者
  • True Positive: Positive case correctly predicted as positive, i.e. a dog is predicted as ‘dog’.

    真实阳性:阳性病例正确地预测为阳性,即一只狗被预测为“狗”。

  • True Negative: Negative case correctly predicted as negative, i.e. a cat is predicted as ‘cat’.

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值