multiple_sampling_generator {DeepPINCS} | R Documentation

## Generator function for multiple inputs

### Description

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

### Usage

    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

    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)

[Package DeepPINCS version 1.0.2 Index]