top1和top5 error直白理解

结论

直接上结论,既然是error所以,top-1 error ratetop-5 error rate越小说明模型越准确。

作用

出自于ImageNet,用于评判模型的性能,比如ImageNet Classification with Deep Convolutional Neural Networks一文中就有对于top-5 error rate的描述:

where the top-5 error rate is the fraction of test images for which the correct label is not among the five labels considered most probable by the model.

含义

根据以上描述,用很直白的话描述就是:

  • top-5 error rate:模型训练前设定了很多类别,模型训练后样本被划分到每个类别都有一定的概率,取概率最大的5个类别,即top5,只要有一个是符合样本的类别就算对,反之就算预测失败,用预测失败的样本数量比上总数就是top-5 error rate。
  • top-1 error rate:只取概率最大的那1个类别,即top1,其他条件同上。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

凡心curry

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值