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

test代码的算error分母好像不对 #44

Open
Incandescenced1 opened this issue May 17, 2022 · 1 comment
Open

test代码的算error分母好像不对 #44

Incandescenced1 opened this issue May 17, 2022 · 1 comment

Comments

@Incandescenced1
Copy link

分母应该是样本的个数,但是代码写的是len(dataloader)*args. batchsize 这个要比样本数多

@hs7251912
Copy link

是的 把*args. batchsize删除
loss = loss_sum / len(test_loader)

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