1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 机器学习_评价指标Accuracy(准确率) Precision(精准度/查准率) Recall(召回率/

机器学习_评价指标Accuracy(准确率) Precision(精准度/查准率) Recall(召回率/

时间:2019-08-03 16:55:21

相关推荐

机器学习_评价指标Accuracy(准确率) Precision(精准度/查准率) Recall(召回率/

首先我们先上一个整体的公式:

混淆矩阵

混淆矩阵可以清楚的看出错判的样本,以便后续训练重视。

混淆矩阵中的相关名词也是我们后面要将的几个评价指标的重要变量。

Error Rate(错误率)和Accuracy(准确率)

Error Rate(错误率):分类错误的样本数占样本总数的比例。

公式: ( f a l s e p o s i t i v e s + f a l s e n e g a t i v e s ) / t o t a l e x a m p l e s (false positives + false negatives) / total examples (falsepositives+falsenegatives)/totalexamples

Accuracy(准确率):分类正确的样本数占样本总数的比例。

公式: ( t r u e p o s i t i v e s + t r u e n e g a t i v e s ) / t o t a l e x a m p l e s (true positives + true negatives) / total examples (truepositives+truenegatives)/totalexamples

Precision(精准度/查准率)和Recall(召回率/查全率)

Precision(精准度/查准率):预测出来的正样本中,正确的有多少。

公式: t r u e p o s i t i v e s / ( t r u e p o s i t i v e s + f a l s e p o s i t i v e s ) true positives / (true positives + false positives) truepositives/(truepositives+falsepositives)

Recall(召回率/查全率):预测出来的正样本占总样本中正样本的比例。

公式: t r u e p o s i t i v e s / ( t r u e p o s i t i v e s + f a l s e n e g a t i v e s ) true positives / (true positives + false negatives) truepositives/(truepositives+falsenegatives)

R-P曲线

P-R 曲线越靠近右上角性能越好。

F1 Scores

F1-score 是两者的综合。F1-score 越高,说明分类模型越稳健。上面的P-R曲线中的看到的右上角平衡点就是F1分数得来的结果。

机器学习_评价指标Accuracy(准确率) Precision(精准度/查准率) Recall(召回率/查全率) F1 Scores详解

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。