MATLAB Answers


question regarding ntstool, pollution mortality example dataset

Asked by John
on 31 Jul 2012


I have a question regarding the ntstool (neural network time series).

There is an example dataset called pollution mortality that you can load into the GUI and learn how to train a network.

The following code is also in the GUI:

[X,T] = pollution_dataset;
net = narxnet(1:2,1:2,10);
[Xs,Xi,Ai,Ts] = preparets(net,X,{},T);
net = train(net,Xs,Ts,Xi,Ai);
Y = net(Xs,Xi,Ai)

The dataset has 219 input timestamps. But when you execute this code, the graph has 500 timesteps.

Could anybody tell me if code is indeed predicting observations in the future? Where does it specify how many time steps to look ahead?

Thank you




No products are associated with this question.

0 Answers

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!