Creates a Python Class that internally iterates over the data.
make_generator_from_xy(
x,
y,
generator = keras::image_data_generator(),
batch_size = 32L,
shuffle = TRUE,
seed = 1L,
subset = NULL,
ignore_class_split = FALSE
)
Arguments
x |
matrix
Numeric matrix of features.
|
y |
matrix
Numeric matrix of target, already one-hot transformed.
|
generator |
Python Object
A generator as e.g. obtained from keras::image_data_generator .
Used for consistent train-test splits.
|
batch_size |
integer
Batch size.
|
shuffle |
logical
Should data be shuffled?
|
seed |
integer
Set a seed for shuffling data.
|
subset |
character
Should samples be generated from 'training' or 'validation' set?
Only applicable together with a 'generator'.
|
ignore_class_split |
logical
Test whether all class labels appear in all splits.
|