Skip to content

Commit

Permalink
Reenable shuffling of sorted minibatches in iterators.SortedPadded
Browse files Browse the repository at this point in the history
  • Loading branch information
gchrupala committed Apr 17, 2015
1 parent 60bad34 commit 8a78826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passage/iterators.py
Expand Up @@ -63,7 +63,7 @@ def iterXY(self, X, Y):
x_chunk = [x_chunk[idx] for idx in sort]
y_chunk = [y_chunk[idx] for idx in sort]
mb_chunks = [[x_chunk[idx:idx+self.size], y_chunk[idx:idx+self.size]] for idx in range(len(x_chunk))[::self.size]]
#mb_chunks = shuffle(mb_chunks)
mb_chunks = shuffle(mb_chunks)
for xmb, ymb in mb_chunks:
xmb = padded(xmb)
yield self.x_dtype(xmb), self.y_dtype(ymb)

0 comments on commit 8a78826

Please sign in to comment.