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

在SocialRec的test.py中batchsize被设为1 #15

Closed
SSOTTY opened this issue Sep 18, 2020 · 1 comment
Closed

在SocialRec的test.py中batchsize被设为1 #15

SSOTTY opened this issue Sep 18, 2020 · 1 comment

Comments

@SSOTTY
Copy link

SSOTTY commented Sep 18, 2020

请问为什么您在训练集中将batchsize的值设为200,在测试集中却设置为1?
代码在test.py的第81行,内容为args.batch_size = 1。

@Songweiping
Copy link
Contributor

测试集的batch size 设置为1是为了能够测试所有的测试样本,防止最后几个样本不能构成一个完整的batch size而无法测试。

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