Can Greg post an example for using neural network time series in the whole sense?
4 ビュー (過去 30 日間)
古いコメントを表示
I am using neural network time series to predict stock price for next week. Normal procedure to approach this problem as explained in nnhelp isn't sufficient. Errors are big and results are absurd. Going through online help, I have seen various answers by Greg which are somewhat helpful but really time consuming. If Greg can write the process for X = phInputs;T = phTargets; example it would be really enlightening. citing steps for 1. Normalize the data (making a time-series stationary), 2. Choosing hidden layer number, 3. Feedback delay number, 4. Data classification (using datablock)
4 件のコメント
採用された回答
Greg Heath
2018 年 8 月 7 日
Can Greg post an example for using neural network time series in the whole sense?
Yes he can … and in fact, he has! If the examples are not in ANSWERS, then they must be in COMP.SOFT-SYS.MATLAB!
It may sound strange, but I would first search using the terms
greg ph
If still bewildered, I'm sure you can find similar posts using other MATLAB time-series sample data.
help nndatssets
doc nndatasets
Thank you for formally accepting my answer
Greg
4 件のコメント
Greg Heath
2018 年 8 月 7 日
As you know, I have posted hundreds of NN posts over the years in this and other groups. At this point I have no idea where particular posts are. Also, it is rare that only one of the posts is relevant to a particular question. All I can do is suggest reasonable search words.
The reference nndatasets is where the MATLAB sample data is. It makes no sense for me to spend my time on other data.
Typically, there is more than one relevant reference. I'll check that reference and get back to you.
その他の回答 (3 件)
Greg Heath
2018 年 8 月 9 日
編集済み: Greg Heath
2018 年 8 月 9 日
Q1a: Do I need to normalize/standardize the data before feeding to neural network?
A1a: Typically, Yes. One of the following
Normalization : range = [ 0,1 ]
Standardization: [mean, variance] = [ 0,1 ]
Q1b: Or does neural network take care for standardization of data
A1b: MATLAB automatically normalizes
I prefer to standardize
Q2: How can I decide range of the data to be used? 5 yrs or 10 years? Is the process of doing so manual observing model mse?
A2: Always plot the data before making any decisions.
Then decide what model(s) might be appropriate.
You may have to use different models in different
ranges.
Q3: How can I decide number of hidden layers, FD (feedback delays)? Is the process manual?
A3a: One hidden layer is always sufficient.
Specific knowledge of the data may warrant
two. I determine number of hidden nodes by
trial and error.
A3b. I determine characteristic delays from the
auto and crosscorrelation functions
Q4: After making the network with sufficiently accurate mse, do I need to convert the net into closed-loop (netc) for next week prediction?
A4. It depends on which time-series model that you are using.
If it is a feedback model it should be obvious that you need to
close the loop to predict the future.
A4: Yes. I have posted more than a sufficient number
of tutorials in the NEWSGROUP and ANSWERS.
Hope this helps.
*Thank you for formally accepting my answer*
Greg
0 件のコメント
Greg Heath
2018 年 8 月 9 日
Q1a: Do I need to normalize/standardize the data before feeding to neural network?
A1a: Typically, Yes. One of the following
Normalization : range = [ 0,1 ]
Standardization: [mean, variance] = [ 0,1 ]
Q1b: Or does neural network take care for standardization of data
A1b: MATLAB automatically normalizes
I prefer to standardize
Q2: How can I decide range of the data to be used? 5 yrs or 10 years? Is the process of doing so manual observing model mse?
A2: Always plot the data before making any decisions.
Then decide what model(s) might be appropriate.
You may have to use different models in different
ranges.
Q3: How can I decide number of hidden layers, FD (feedback delays)? Is the process manual?
A3a: One hidden layer is always sufficient. Specific
knowledge of the data may warrant two. I determine
number of hidden nodes by trial and error.
A3b. I determine characteristic delays from the auto
and crosscorrelation functions
Q4: After making the network with sufficiently accurate mse, do I need to convert the net into closed-loop (netc) for next week prediction?
A4: Yes. I have posted more than a sufficient number
of tutorials in the NEWSGROUP and ANSWERS.
Hope this helps.
*Thank you for formally accepting my answer*
Greg
1 件のコメント
Shashank Bhatia
2018 年 8 月 8 日
3 件のコメント
Greg Heath
2018 年 8 月 12 日
The only thing different about your case is the dominant low order (quadratic, cubic,...?) polynomial trend.
Subtracting that out should yield a decent long term predictor.
Then you can use the remainder for short term predictions.
Greg
参考
カテゴリ
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!