TrainingStats类中部分数值有精度bug #13210
crackso
started this conversation in
Ideas & Features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
问题描述 / Problem Description
在TrainingStats类中get函数和log函数,有个对评估指数变量作保留6位的小数的操作。举个例子:当后几位是9的情况,这里的acc就会被显示成1.0,这种情况只有在训练过一段时间之后才可以看到,训练几轮基本发现不了。这样的话,也不利用后续对训练模型结果的评估。
运行环境 / Runtime Environment
复现代码 / Reproduction Code
完整报错 / Complete Error Message
可能解决方案 / Possible solutions
临时解决方案:

因为acc是我们常用到的值,可以使用以下方式解决:
修改之后acc显示完整值:

附件 / Appendix
Beta Was this translation helpful? Give feedback.
All reactions