Info

This question is closed. Reopen it to edit or answer.

entering new data in Neural Network Time Series Tool

3 views (last 30 days)
Mohammad
Mohammad on 20 Jul 2011
Closed: MATLAB Answer Bot on 20 Aug 2021
When i create a time series network and save it, how should i put new data in the created net and simulate it?

Answers (2)

Chirag Gupta
Chirag Gupta on 20 Jul 2011
This link contains the information you are looking for Time Series Tool
outputs = net(inputs,inputStates,layerStates); % Note inputStates and layerStates are only required for networks with tapped delay lines
  1 Comment
Mohammad
Mohammad on 20 Jul 2011
Thank you dear Chirag
This command just gives output of data given to train, validate and test the network. I need to give new data and simulate the network with new data.

Chirag Gupta
Chirag Gupta on 20 Jul 2011
Hi Mohammed,
Typically when you create a TimeSeries network, the network output also acts as the second input (feedback input). Typically for training these netoworks are open loop, requiring you to use function like:
preparets % doc preparets
to configure your inputs.
Once your network has been trained, you can use close the loop on your network.
closed_net = closeloop(net);
view(closed_net); % see the output is automatically fed back as the input
% Simulate with new data
outputs = closed_net(newInputs)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!