stock prediction : GRU model predicting same given values instead of future stock price

£可爱£侵袭症+ 提交于 2019-12-02 01:16:46

It is a well-known issue with regression actually. Since the task of the regressor is to minimize error, it secures it task by choosing the closest value from the features you input to the regressor. It becomes the case especially in the time-series problems.

1) Never give unprocessed closing value that you want your model to predict, especially in the time-series regression problems. More generally, never give a feature that gives some direct numerical intuition to a regressor about what the label might be.

2)If you are not sure whether the model just replicates like your case, be sure to plot the original test set and your prediction all together to visually analize the situation. Moreover, if you can, do a simulation of your model on the real-time data to observe whether your model predicts with the same performance.

3)I’d recommend you to apply binary classification rather than regression.

I’ve been intensely working on financial signal prediction for nearly a year, do not hesitate to ask more.

Have fun.

In my opinion this is happening because your loss function here is mean squared error. The best way to minimize this error is by using the previous value as the estimate for the current step (especially if the steps are nearby).

You will start seeing the limitations of your model clearly if you try to predict the delta between samples.

I am currently experiencing similar issues trying to predict using time series. I haven't found a solution yet, but am working on extracting features as others pointed out.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!