Multi Input Neural Network with delayed target input.
이전 댓글 표시
I'd like to design a neural network that takes multiple inputs, one of them being a delayed average of the target output.
The below "example" code will make a diagram with what I hope is a real time (no delay) inputs for x1,x3,x4,x5,x6 & a delay of 8 steps in time for y(t). With that delayed step in time made up of an moving average of 1:8 steps.
Thanks for your feedback...
inputDelays = 1:1;
feedbackDelays = 1:1;
hiddenLayerSize = 4;
net = narxnet(inputDelays,feedbackDelays,hiddenLayerSize);
net.numInputs=6;
net.inputs{1}.name='x1';
net.inputs{2}.name='y';
net.inputs{3}.name='x3';
net.inputs{4}.name='x4';
net.inputs{5}.name='x5';
net.inputs{6}.name='x6';
net.inputConnect=logical([1 1 1 1 1 1; 0 0 0 0 0 0]);
net.inputWeights{1,1}.delays=0;
% delayed 8 steps in time wrt other inputWeights
% when appled value is avg of 1:8 steps
net.inputWeights{1,2}.delays=1:8;
net.inputWeights{1,3}.delays=0;
net.inputWeights{1,4}.delays=0;
net.inputWeights{1,5}.delays=0;
net.inputWeights{1,6}.delays=0;
view(net)
댓글 수: 1
ASIF IQBAL
2022년 10월 27일
how we can use different lag input combination in any machine learning algorithm?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!