Neural Network Time Series tool
2 次查看(过去 30 天)
显示 更早的评论
Hello folks,
I want to setup a Neural network to predict some values, I look the Matlab guide for neural network and I find this example:
y = laser_dataset;
y = y(1:600);
ftdnn = timedelaynet([1:8], 10);
ftdnn.trainParam.epochs = 50;
ftdnn.divideFcn = '';
p = A(9:end);
t = A(9:end);
Pi = A(1:8);
ftdnn = train(ftdnn,p,t,Pi);
yp = ftdnn(p,Pi);
e = gsubtract(yp,t);
rmse = sqrt(mse(e))
My question is, how can I see the next predicted value? Or how can I calculate the predicted output data of the neural network?
The manual is a bit confusing because it only indicates how to determine the prediction error, but how could use this RMSE to know the value?
You see, this is a It is a valid question, because I have found a lot of confusion over the Internet on such networks without clear and objective answers.
Another question I have is, I can use the same network (FTDNN) using small samples of input data, say 20 or 30 inputs, providing the output 21 or 31?
Thanks a lot for your help!
1 个评论
geofo
2021-11-30
The question is still not answered. A neural network is trained that "A==A" (it can be seen the input vector is identical to the output vector, p==t). The writer of the manual is pleased that the error is small. Indeed one can expect that for any input A the output will be precisely A after this training. However the readers are not pleased at all with this example. How can a useful prediction be made after such a tautologic training?
采纳的回答
Greg Heath
2016-10-2
NARNET is the function for a single series
help NARNET
doc NARNET
Search BOTH NEWSGROUP and ANSWERS with
greg NARNET
greg NARNET tutorial
Hope this helps.
Thank you for formally accepting my answer
Greg
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!