Skip to content
This repository was archived by the owner on Jul 10, 2021. It is now read-only.

Conversation

jmgore75
Copy link
Contributor

If batch size is greater than the total size of the data set, no data will be yielded from _iterate_data. Consequently, no training will happen and you will get a ZeroDivision error for "loss / count" in _batch_impl. Also, it only generates batches of the exact size - any remaining data at the end is not trained on.

If batch size is greater than the total size of the data set, no data will be yielded from _iterate_data.  Consequently, no training will happen and you will get a ZeroDivision error for "loss / count" in _batch_impl.  Also, it only generates batches of the exact size - any remaining data at the end is not trained on.
@alexjc
Copy link
Member

alexjc commented Dec 26, 2015

Happy to merge this, just need one test to catch the problem. See if there's a sensible place to put it with other batch_size tests, maybe in test_training? (My message got lost apparently, sorry for delay.)`

@alexjc
Copy link
Member

alexjc commented Jan 1, 2016

If you want me to merge this from your PR, please include the three tests from [7831214]. Thanks again!

@alexjc alexjc mentioned this pull request Jan 1, 2016
@alexjc alexjc closed this in #167 Jan 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants