• F1


    以下指标可以作为衡量分类问题的准确度的标准

    在这里插入图片描述

    Precision

    Precision(%)= T r u e   p o s i t i v e n u m b e r   o f   p r e d i c t e d   p o s i t i v e ∗ 100 = T r u e   p o s i t i v e T r u e   p o s i t i v e + F a l s e   P o s i t i v e ∗ 100 frac{True positive}{number of predicted positive}*100=frac{True positive}{True positive + False Positive}*100 number of predicted positiveTrue positive100=True positive+False PositiveTrue positive100

    Recall

    Recall(%)= T r u e   p o s i t i v e n u m b e r   o f   a c t u a l l y   p o s i t i v e ∗ 100 = T r u e   p o s i t i v e T r u e   p o s i t i v e + F a l s e   N e g a t i v e ∗ 100 frac{True positive}{number of actually positive}*100=frac{True positive}{True positive + False Negative}*100 number of actually positiveTrue positive100=True positive+False NegativeTrue positive100

    说明

    当你有多个Classifiers时,每一个Classifier的Precision和Recall可能都不一样,而且Precision和Recall之间是存在取舍关系的。因此以Precision和Recall作为衡量指标是不太可行的,你无法一眼看出哪个Classifier表现得更好。

    直观而言,你会想到以 ( P r e c i s i o n + R e c a l l ) / 2 (Precision+Recall)/2 (Precision+Recall)/2作为一个单一的度量指标,但直接求平均数并不太科学,我们有更好的求平均的方法F1 Score,称作调和平均(Harmonic)。

    F1 Score

    F 1 S c o r e = 2 1 P + 1 R F_1Score=frac{2}{frac{1}{P}+frac{1}{R}} F1Score=P1+R12

    你可以简单理解F1 Score为P和R的“平均”。

    百度百科里有全面的解释:
    在这里插入图片描述

    使用Dev Set和单一的评估标准能够加速你学习的迭代过程。

  • 相关阅读:
    2.4.6 处理表单 的 工作原理的解释
    nginx proxy模块
    nginx负载均衡模块
    Oracle正在执行和执行过的SQL语句
    nginx
    linux :故障提示:Error:No suitable device found: no device found for connection "System eth0"
    memcached
    一致性哈希算法(consistent hashing)(转)
    大规模网站sesson会话保持思路及实践配置
    AB压力测试工具
  • 原文地址:https://www.cnblogs.com/wanghongze95/p/13842525.html
Copyright © 2020-2023  润新知