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

训练集id数和ids_per_batch的问题 #37

Closed
ShiinaMitsuki opened this issue Jun 4, 2018 · 1 comment
Closed

训练集id数和ids_per_batch的问题 #37

ShiinaMitsuki opened this issue Jun 4, 2018 · 1 comment

Comments

@ShiinaMitsuki
Copy link

发现一个训练数据集id数量和训练时ids_per_batch的设定的问题:
train_set_ids % ids_per_batch = 1的时候会导致整个epoch最后一个batch只有一个id,此时triloss时会没有负样本,故而会报错

@huanghoujing
Copy link
Owner

您好,多谢反馈!我把train_final_batch改成了False,可以解决这个问题。

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