Partition a minibatchqueue
partitions submbq
= partition(mbq
,numParts
,indx
)minibatchqueue
mbq
into numParts
parts and returns the partition
corresponding to the index indx
. The properties of
submbq
are the same as the properties of mbq
.
The output minibatchqueue
only has access to the partition of data it
is given when it is created. Using reset
with
submbq
resets the minibatchqueue
to the start of the
data partition. Using shuffle
with
submbq
shuffles only the partitioned data. If you want to shuffle the
data across multiple partitions, you must shuffle the original
minibatchqueue
and then re-partition.
minibatchqueue
| next
| reset
| shuffle