| |
- as_batch(flow, feature_field_name='features', label_field_name='label', batchsize=16)
- Split input datastream into a sequence of batches suitable for keras training.
:param flow: input datastream
:param feature_field_name: feature field name to use. can be string or list of strings (for multiple arguments). Defaults to `features`
:param label_field_name: Label field name. Defaults to `label`
:param batchsize: batch size. Defaults to 16.
:return: sequence of batches that can be passed to `flow_generator` or similar function in keras
|