View source: R/generator_utils.R
generator_dummy | R Documentation |
Creates a random input/target list once and repeatedly returns list.
generator_dummy(model, batch_size)
model |
A keras model. |
batch_size |
Number of samples in one batch. |
A generator function.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.