rnnStream: Setup the Input and Output for a Recurrent Neural Network
Description
R command to setup the input and output for a Recurrent Neural Network.
It is used in
the Wiley book Statistical Learning with Big Dependent Data
by Daniel Pe<U+00F1>a and Ruey S. Tsay (2021).
Usage
rnnStream(z, h = 25, nfore = 200)
Arguments
z
Input in integer values.
h
Number of lags used as input.
nfore
Data points in the testing subsample.
Value
A list containing:
Xfit - Predictor in training sample (binary).
Yfit - Dependent variable in the training sample (binary).