preparets
Prepare input and target time series data for network simulation or training
Description
[
takes these arguments:Xs
,Xi
,Ai
,Ts
,EWs
,shift
] = preparets(net
,Xnf
,Tnf
,Tf
,EW
)
net
— Neural networkXnf
— Non-feedback inputsTnf
— Non-feedback targetsTf
— Feedback targetsEW
— Error weights (optional)
and returns these arguments:
Xs
— Shifted inputsXi
— Initial input delay statesAi
— Initial layer delay statesTs
— Shifted targetsEWs
— Shifted error weightsshift
— The number of timesteps truncated from the front ofX
andT
in order to properly fillXi
andAi
.
This function simplifies the normally complex and error prone task of reformatting input and target time series. It automatically shifts input and target time series as many steps as are needed to fill the initial input and layer delay states. If the network has open-loop feedback, then it copies feedback targets into the inputs as needed to define the open-loop inputs.
Each time a new network is designed, with different numbers of delays or feedback
settings, preparets
can reformat input and target data
accordingly. Also, each time a network is transformed with openloop
, closeloop
, removedelay
or adddelay
, this function can reformat the data
accordingly.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2010b
See Also
adddelay
| closeloop
| narnet
| narxnet
| openloop
| removedelay
| timedelaynet