For training NARX network, we need to prepare input and target time series data using preparets function. However, the preparets function has many input and output arguments which are confused for me to understand their functioning. I have read the examples about preparets, yet it is still difficult to understand. What is the best practice to understand the preparets and correctly use it under different network training scenarios ?
help preparets
preparets - Prepare input and target time series data for network simulation or training
This MATLAB function takes these arguments: net — Neural network Xnf —
Non-feedback inputs Tnf — Non-feedback targets Tf — Feedback targets EW
— Error weights (optional)and returns these arguments: Xs — Shifted
inputs Xi — Initial input delay states Ai — Initial layer delay states
Ts — Shifted targets EWs — Shifted error weights shift — The number of
timesteps truncated from the front of X and T in order to properly fill
Xi and Ai.
Syntax
[Xs,Xi,Ai,Ts,EWs,shift] = preparets(net,Xnf,Tnf,Tf,EW)
Input Arguments
net - Input network
network
Xnf - Non-feedback inputs
cell array
Tnf - Non-feedback targets
cell array
Tf - Feedback targets
cell array
EW - Error weights
cell array
Output Arguments
Xs - Shifted inputs
cell array
Xi - Initial input delay states
cell array
Ai - Initial layer delay states
cell array
Ts - Shifted targets
cell array
EWs - Shifted error weights
cell array
shift - Timesteps
scalar
Examples
openExample('nnet/PrepareDataForOpenAndClosedLoopNetworksExample')
See also adddelay, closeloop, narnet, narxnet, openloop, removedelay,
timedelaynet
Introduced in Deep Learning Toolbox in R2010b
Documentation for preparets
doc preparets
EDIT: removed copyright code.