multiple_sampling_generator: Generator function for multiple inputs

Description Usage Arguments Value Author(s) Examples

View source: R/util.R

Description

This is a generator function that yields batches of data with multiple inputs.

Usage

1
2
multiple_sampling_generator(X_data, Y_data = NULL, batch_size,
    shuffle = TRUE)

Arguments

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)

Value

generator for "keras::fit_generator" or "keras::predict_genertor"

Author(s)

Dongmin Jung

Examples

1
2
3
4
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)

dongminjung/DeepPINCS documentation built on Dec. 20, 2021, 12:13 a.m.