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

Commit

Permalink
Merge branch 'pr/157' into batch-size
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjc committed Jan 1, 2016
2 parents 7831214 + ac26499 commit 65b6542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sknn/backend/lasagne/mlp.py
Expand Up @@ -261,7 +261,7 @@ def cast(array, indices):
if shuffle:
numpy.random.shuffle(indices)

for start_idx in range(0, total_size - batch_size + 1, batch_size):
for start_idx in range(0, total_size, batch_size):
excerpt = indices[start_idx:start_idx + batch_size]
Xb, yb, wb = cast(X, excerpt), cast(y, excerpt), cast(w, excerpt)
yield Xb, yb, wb
Expand Down

0 comments on commit 65b6542

Please sign in to comment.