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

Exhaust training set #49

Merged
merged 2 commits into from Aug 6, 2016
Merged

Exhaust training set #49

merged 2 commits into from Aug 6, 2016

Conversation

eywalker
Copy link
Contributor

@eywalker eywalker commented Aug 5, 2016

Previously, when the len(trX) is completely divisible by batch_size, the training skipped over the last batch because end=len(trX) would never occur. Corrected this and now the loop will go over the entire training set if batch_size can cleanly fit in.

Previously, when the `len(trX)` is completely divisible by `batch_size`, the training skipped over the last batch because `end=len(trX)` would never occur. Corrected this and now the loop will go over the entire training set if `batch_size` can cleanly fit in.
@nlintz
Copy link
Owner

nlintz commented Aug 5, 2016

I think this looks good. Can you take a look @hunkim

@hunkim
Copy link
Collaborator

hunkim commented Aug 5, 2016

+1. @eywalker We have the same code in other files. Do you have time to fix them as well?

@eywalker
Copy link
Contributor Author

eywalker commented Aug 5, 2016

Sure - I'll do a quick scan.

@hunkim
Copy link
Collaborator

hunkim commented Aug 6, 2016

Wonderful! Thanks!!

@hunkim hunkim merged commit 5311737 into nlintz:master Aug 6, 2016
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

Successfully merging this pull request may close these issues.

None yet

3 participants