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

trainer.py #1

Open
ghost opened this issue Jun 28, 2014 · 1 comment
Open

trainer.py #1

ghost opened this issue Jun 28, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 28, 2014

In trainer.py, you define: self.n_train_batches = ds.n_train / self.batch_size
What happens if ds.n_train is not a multiple of self.batch_size? Eg n_train=166 and batch_size=20, then n_train_batches=8. So we are not using the last 6 elements in the training set.

@adbrebs
Copy link
Owner

adbrebs commented Jun 28, 2014

Yes, at the moment these 6 elements would be discarded. So it is better to choose n_train % batch_size = 0, either modofying n_train or batch_size.

I am going to fix it by compiling two C functions, one for a batch size and the other one for (n_train % batch_size)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant