Hello. I’m new here and I have a problem with the neural network toolbox that is unbearably frustrating because it should be the easiest thing in the world but I’m not getting it. My general Matlab skills are very moderate and I have never used the Neural Network function before until now.
I want to create a neural network that based on an input data series can predict values in the future. From what I understand the Nonlinear Autoregressive neural network should be perfect for this and I have tried for hours and hours to watch all of Matlabs own tutorials on how to use the neural network toolbox and read about it but it seems like all the tutorials basically stop after the data has been trained and refuses to tell you how to make any useful predictions at all with the network. Or I am just simply missing something that is really obvious to everyone else except me.
I read on a Matlab tutorial that they recommend you to use the GUI way of making a neural network first until you get the hang of it and can code it. So here is pretty much what I do when I follow the guides:
Write nnstart -> go to Time series app -> select NAR and chose my 1×1826 data series as a matrix row (imported from an excel sheet) -> select 10 hidden neurons & 2 delays.
Then I train the data using Levenberg-Marquardt and after the training it seems to have worked great. I click next and save the results and Finnish.
My workspace is now full of things generated by the neural network, for example a data series called “output” which of course sounds promising, but it is 1×1824 cells, in other words 2 values shorter than the original data series (because delay was set to 2 I guess).
And at this point I am totally lost. How do I make any predictions with this? I have also tried using the example input data in the toolbox instead of my own data series but it makes no difference. So after the training and everything is done, how in god’s name do I get the network to tell me the 1825th value of my data series?!
I have tired generating the script and trying to understand it from there, and If I’m lucky the script can tell me things like “perfc = 1.5278” and “stepAheadPerformance = 5.8328e-04”. I’m not sure what that means but it feels like Matlab is bragging about how good it could theoretically predict the next values, but it sure doesn’t like to give up its predicted values without a fight! 🙂
So can anyone help me out here? How do I predict values after the network has been trained?
Thanks in advance!
Best Answer