sampling_generator: Generator function

Description Usage Arguments Value Author(s) Examples

View source: R/ttgsea.R

Description

This is a generator function that yields batches of training data then pass the function to the "fit_generator" function.

Usage

1
sampling_generator(X_data, Y_data, batch_size)

Arguments

X_data

inputs

Y_data

targets

batch_size

batch size

Value

generator for "fit_generator"

Author(s)

Dongmin Jung

Examples

1
2
3
X_data <- matrix(rnorm(200), ncol = 2)
Y_data <- matrix(rnorm(100), ncol = 1)
sampling_generator(X_data, Y_data, 32)

dongminjung/ttgsea documentation built on Dec. 30, 2021, 8:51 a.m.