multiple_sampling_generator {DeepPINCS} | R Documentation |
This is a generator function that yields batches of data with multiple inputs.
multiple_sampling_generator(X_data, Y_data = NULL, batch_size, shuffle = TRUE)
X_data |
list of multiple inputs |
Y_data |
targets (default: NULL) |
batch_size |
batch size |
shuffle |
whether to shuffle the data or not (default: TRUE) |
generator for "keras::fit_generator" or "keras::predict_genertor"
Dongmin Jung
X_data <- c(list(matrix(rnorm(200), ncol = 2)), list(matrix(rnorm(200), ncol = 2))) Y_data <- matrix(rnorm(100), ncol = 1) multiple_sampling_generator(X_data, Y_data, 32)