Description Usage Arguments Details Value Examples
Setup a time series data generator specification
1 2 3 4 5 | flow_series_from_dataframe(data, x, y, length_out, stride, lookback,
timesteps, batch_size = 32, mode = "training")
## S3 method for class 'series_generator'
tidy_prediction(generator, prediction, ...)
|
data |
A |
x |
A |
y |
A |
length_out |
An |
stride |
An |
lookback |
An |
timesteps |
An |
batch_size |
An |
mode |
A |
generator |
A reference data generator generated from
|
prediction |
A |
... |
Further argument for specific generators. See details. |
soon updated
A function which could generate batches of x and/or y arrays
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # import library
library(kerasgenerator)
# create example data
sunspots_df <- as.data.frame(sunspots)
# setup a generator
data_gen <- flow_series_from_dataframe(
data = sunspots_df,
x = "x",
y = "x",
length_out = 1,
stride = 1,
lookback = 1,
timesteps = 12,
batch_size = 32,
mode = "training"
)
# quick check
arrays <- data_gen()
str(arrays[[1]])
str(arrays[[2]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.