preparets
(To be removed) Prepare input and target time series data for network simulation or training
preparets will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
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 ofXandTin order to properly fillXiandAi.
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.



