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

Dynamic size weights for BCECriterion? #1037

Open
hiwonjoon opened this issue Nov 19, 2016 · 0 comments
Open

Dynamic size weights for BCECriterion? #1037

hiwonjoon opened this issue Nov 19, 2016 · 0 comments

Comments

@hiwonjoon
Copy link

Hello,

I am try to use BCECriterion with weights parameter, but the function interface seems weird for me.
Is any reason we keep weights vector instead of just single weight for true label? I can't figure out what does it mean since we generally do not discriminate data for the index on a mini-batch.

The real problem is, at the end of the training or validation, The size of batch become # of items % batchSize, which is not equal to batchSize.

Do I understand correctly on this issue? Is there any way to mitigate this problem?

Thanks.

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

1 participant