make_generator_from_matrix {deepregression} | R Documentation |
Make a DataGenerator from a data.frame or matrix
Description
Creates a Python Class that internally iterates over the data.
Usage
make_generator_from_matrix(
x,
y = NULL,
generator = image_data_generator(),
batch_size = 32L,
shuffle = TRUE,
seed = 1L
)
Arguments
x |
matrix; |
y |
vector; |
generator |
generator as e.g. obtained from 'keras::image_data_generator'. Used for consistent train-test splits. |
batch_size |
integer |
shuffle |
logical; Should data be shuffled? |
seed |
integer; seed for shuffling data. |
[Package deepregression version 1.0.0 Index]