Is it possible to run a NARX neural network with less than 10 timesteps?
1 view (last 30 days)
Show older comments
James Wardle
on 27 Apr 2020
Commented: James Wardle
on 3 May 2020
Hi,
I have four input variables and one target variable for each year from 2011 to 2019, which gives me 9 timesteps. I then want to predict a value for 2020 using a NARX neural network. However, I cannot create the network because I get a "Data has less than 10 timesteps." warning. Is it possible to create a NARX NN with 9 timesteps?
Thanks,
James
0 Comments
Accepted Answer
Srivardhan Gadila
on 3 May 2020
Alternatively if you can follow the example Train NARX Network and Predict on New Data & write a MATLAB script as below then I think you can create and train the network.
[X,T] = simpleseries_dataset;
Xnew = X(10:100);
X = X(1:9);
T = T(1:9);
net = narxnet(1:2,1:2,10);
[Xs,Xi,Ai,Ts] = preparets(net,X,{},T);
net = train(net,Xs,Ts,Xi,Ai);
view(net)
More Answers (0)
See Also
Categories
Find more on Modeling and Prediction with NARX and Time-Delay Networks in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!