auc和roc曲线解释_ROC曲线和AUC —解释

auc和roc曲线解释

ROC (receiver operating characteristics) curve and AOC (area under the curve) are performance measures that provide a comprehensive evaluation of classification models.

ROC(接收器工作特性)曲线和AOC(曲线下面积)是性能指标,可对分类模型进行全面评估。

ROC curve summarizes the performance by combining confusion matrices at all threshold values. AUC turns the ROC curve into a numeric representation of performance for a binary classifier. AUC is the area under the ROC curve and takes a value between 0 and 1. AUC indicates how successful a model is at separating positive and negative classes.

ROC曲线通过组合所有阈值处的混淆矩阵来总结性能。 AUC将ROC曲线转化为二进制分类器性能的数字表示。 AUC是ROC曲线下的面积,取值介于0到1之间。AUC表示模型在分离阳性和阴性类别方面的成功程度。

Before going in detail, let’s first explain the confusion matrix and how different threshold values change the outcome of it.

在详细介绍之前,让我们首先解释混淆矩阵以及不同的阈值如何改变其结果。

A confusion matrix is not a metric to evaluate a model, but it provides insight into the predictions. Confusion matrix goes deeper than classification accuracy by showing the correct and incorrect (i.e. true or false) predictions on each class. In case of a binary classification task, a confusion matrix is a 2x2 matrix. If there are three different classes, it is a 3x3 matrix and so on.

混淆矩阵不是评估模型的度量标准,但可以提供对预测的洞察力。 通过在每个类上显示正确和不正确(即对或错)的预测,混淆矩阵比分类精度更深。 在执行二进制分类任务的情况下,混淆矩阵为2x2矩阵。 如果存在三个不同的类,则它是3x3矩阵,依此类推。

Image for post
Confusion matrix of a binary classification (Image by author)
二进制分类的混淆矩阵(作者提供)

Let’s assume class A is positive class and class B is negative class. The key terms of a confusion matrix are as follows:

假设A类为肯定类,B类为否定类。 混淆矩阵的关键术语如下:

  • True positive (TP): Predicting positive class as positive (ok)

    真阳性(TP) :将阳性类别预测为阳性(确定)

  • False positive (FP): Predicting negative class as positive (not ok)

    假阳性(FP) :将否定类别预测为阳性(不好)

  • False negative (FN): Predicting positive

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值