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

question regarding ntstool, pollution mortality example dataset

Asked by John on 31 Jul 2012

Hello,

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);
view(net)
Y = net(Xs,Xi,Ai)
plotresponse(Ts,Y);

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

John

0 Comments

John

Products

No products are associated with this question.

0 Answers

Contact us