Error using preparets with narxnet
显示 更早的评论
I'm trying to use a closed loop narxnet for some time series prediction, but I'm having trouble getting past the preparets step.
My network is 2 inputs, 1 feedback target
view(net) shows this is correct
However this code throws an error. As far as I can tell, my input/target cell arrays are the size they should be to match the configured network.
% dummy data
X = rand(2,100);
T = rand(1,100);
% set up network
net = narxnet(1:2,1:2,5);
net = closeloop(net);
net = configure(net,X,T);
% Net shows 2 inputs 1 output
view(net)
% convert to cells
X = num2cell(X); % X is 2x100
T = num2cell(T); % T is 1x100
% Here's the problem
[Xs,Xi,Ai,Ts] = preparets(net,X,{},T);
Thanks in advance
采纳的回答
更多回答(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!