Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不使用addbestmetric,metric无法使用compare对比功能 #47

Open
ryupaladin opened this issue Jan 22, 2021 · 2 comments
Open

不使用addbestmetric,metric无法使用compare对比功能 #47

ryupaladin opened this issue Jan 22, 2021 · 2 comments

Comments

@ryupaladin
Copy link

fitlog.add_metric({"dev": {"Acc": acc}}, step=step)
如果只有这一行,则不能用compare对比两次实验的acc曲线,会显示No overlapped metric to compare.

必须是下面的
fitlog.add_metric({"dev": {"Acc": acc}}, step=step)
fitlog.add_best_metric({"dev":{"Acc":best_acc}})
才能有对比界面

@yhcc
Copy link
Member

yhcc commented Jan 22, 2021

是的,add_metric是用来看曲线的。早年间这样设计的原因是由于,当时觉得不同metric可能有时候需要越大越好(例如acc)有时候越小越好(例如error rate),由fitlog来做这个判断会比较棘手。所以拆分成了两个接口。另外一个原因是考虑到传递进来的dict,不同记录之间由fitlog对比也比较麻烦,所以当时就做成了两个接口了。

@ryupaladin
Copy link
Author

谢谢回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants