I'm going to build up a narx model using two inputs with different input delays for each input. How should i put different input delays in to my network?

inputsarray=[dlngold;day1]; inputs1=con2seq(inputsarray)
target=con2seq(aspilnreturn)
inputSeries = inputs1; targetSeries = target;
inputDelays = 1:1; feedbackDelays = 1:3; hiddenLayerSize = 2; net = narxnet(inputDelays,feedbackDelays,hiddenLayerSize);
[inputs,inputStates,layerStates,targets] = preparets(net,inputSeries,{},targetSeries);

 Accepted Answer

If you have multiple inputs and want different delays for different inputs, you have to define a CUSTOM NETWORK with parallel input layers. The delays within each layer are the same.
For the appropriate documentation, use the commands
help network
doc network
Hope this helps.
Thank you for formally accepting my answer
Greg

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!