BatchUp

BatchUp is a lightweight Python library for extracting mini-batches of data for the purpose of training neural networks.

A quick example:

from batchup import data_source

# Construct an array data source
ds = data_source.ArrayDataSource([train_X, train_y])

# Iterate over samples, drawing batches of 64 elements in
# random order
for (batch_X, batch_y) in ds.batch_iterator(batch_size=64,
                                            shuffle=True):
    # Processes batches here...

Indices and tables