get_LSTM_XY | R Documentation |
get_LSTM_XY
extracts features and outcomes from a data/time series in a Long Short-Term Memory (LSTM) compatible preformat.
Within a univariate time series, y(t) is explained by past y(t-1), y(t-2) etc. Therefore the last sample of the
feature set must be deleted, because there is no Y-value for it. Resampling of the Y-values must start at timesteps + 1.
That is different to a multivariate time series. For y(t), the corresponding features at time t are already given.
Resampling must start at timesteps.
get_LSTM_XY(
dataset,
x = NULL,
y = 2L,
other_columns = NULL,
timesteps = 1L,
xlag = 0L,
y_as_feature = c("none", "plain", "timesteps"),
ylag = 0L
)
dataset |
A data set, usually a matrix or data frame. |
x |
The names or indices of the feature columns. |
y |
The names or indices of the outcome columns. |
other_columns |
The names or indices of further columns, e.g. a periodic column. |
timesteps |
A number or vector of timesteps for |
xlag |
The considered lags on feature side. For a univariate time series at least a lag of 1 is needed.
For a multivariate time series no lag must be necessarily used. This argument can also be a vector of the same length as |
y_as_feature |
Indicates whether lagged outcomes are used as features in a multivariate time series. |
ylag |
The considered lag for lagged outcomes ( |
A list with named elements
X
: A feature matrix in LSTM compatible preformat for usage with as_LSTM_X
.
Y
: An outcome matrix in LSTM compatible preformat for usage with as_LSTM_Y
.
other_columns
: A data frame of the selected other_columns
.
as_LSTM_X
, as_LSTM_Y
.
Other Recurrent Neural Network (RNN):
as_LSTM_X()
,
as_LSTM_Y()
,
as_LSTM_data_frame()
,
as_LSTM_period_outcome()
,
as_lag()
,
as_timesteps()
,
build_LSTM()
,
fit_LSTM()
,
get_period_shift()
,
load_weights_ANN()
,
predict_ANN()
,
save_weights_ANN()
,
start_invert_differencing()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.