generator_dummy: Random data generator

View source: R/generator_utils.R

generator_dummyR Documentation

Random data generator

Description

Creates a random input/target list once and repeatedly returns list.

Usage

generator_dummy(model, batch_size)

Arguments

model

A keras model.

batch_size

Number of samples in one batch.

Value

A generator function.

Examples


model <- create_model_lstm_cnn(
  maxlen = 10,
  layer_lstm = c(4),
  layer_dense = c(5))
gen <- generator_dummy(model, 12)
z <- gen()
x <- z[[1]]
y <- z[[2]]
dim(x)
dim(y)


GenomeNet/deepG documentation built on Dec. 24, 2024, 12:11 p.m.