as_LSTM_Y | R Documentation |
Outcomes (Y) data format for LSTM
as_LSTM_Y(
y,
timesteps = 1L,
reverse = FALSE,
encoding = c("one_hot", "sparse")
)
y |
An outcome data set, usually a vector, matrix or data frame, returned by |
timesteps |
Number of timesteps; stands for the number of different periods within one sample (record) of the result, the resampled outcome matrix |
reverse |
Controls the order of the values in the resampled outcome matrix |
encoding |
The type of encoding: one-hot encoding or sparse encoding. |
Dependent on the type of y
and timesteps. If y
is a factor, the result is a one-hot vector.
If timesteps = NULL|1
a 2D-array with the dimensions (1) samples as number of records and (2) number of output units, representing a scalar outcome y
,
if timesteps >= 2
a 3D-array with the dimensions (1) samples, (2) timesteps and (3) number of output units, representing a sequence or multi-step outcome y
.
get_LSTM_XY
, as_LSTM_X
, as_ANN_matrix
, one_hot_encode
, sparse_encode
as_tensor_2d
, as_tensor_3d
.
Other Recurrent Neural Network (RNN):
as_LSTM_X()
,
as_LSTM_data_frame()
,
as_LSTM_period_outcome()
,
as_lag()
,
as_timesteps()
,
build_LSTM()
,
fit_LSTM()
,
get_LSTM_XY()
,
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.