Description Usage Arguments Value Examples
View source: R/ts_nn_preparation.R
The following steps are proceeded:
Split in train, validation and test split
Transformation to 3D arrays for Keras
1 2 3 4 5 6 7 8 | ts_nn_preparation(
data,
tsteps,
length_val = 16L,
length_test = 8L,
value_col = "value",
value_lag_col = "value_lag"
)
|
data |
balanced univariate time series as data.table object. Lagged
columns in the form |
tsteps |
number of lagged time steps |
length_val |
length of validation set |
length_test |
length of test set |
value_col |
name of column with value to prepare |
value_lag_col |
name of lagged value column(s) to prepare, searched by
starting pattern. E.g. |
list of "X" and "Y" each containing "train", "val" and "test" arrays
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.