In[2]: TIME_AHEAD = 1
Train set has ~1e-6 MSE, Test set has ~0.8 (0.94^2).
EDIT: I should say this person is probably learning, and a lot of this is honest mistake.
11–20 of 20 posts
In[2]: TIME_AHEAD = 1
Train set has ~1e-6 MSE, Test set has ~0.8 (0.94^2).
EDIT: I should say this person is probably learning, and a lot of this is honest mistake.
The model could be trained in such a way that it will only work with historical data and pass only back tests accurately. This is because you are training against the “answer” which is already known.
The model could be trained in such a way that it will only work with historical data and pass only back tests accurately. This is because you are training against the “answer” which is already known.
However, this looks to be grossly overfitting. You can't just randomly drop out samples in a time series and use those for the test dataset. You need to cut out larger contiguous sequential time ranges and reserve those for your test set. Probably a single contiguous time window.
Anyone can predict with a high degree of accuracy what stock price is given the last 5 days and the next 5 days.
Predicting a few randomly dropped out pixels in that graph is really easy due to the nature of time series. You can just interpolate it.
Cool to see that you created a notebook and are publishing this like a paper. I was thinking of doing some projects and this looks like a good format to follow. However, this looks to be grossly overfitting. You can't just randomly drop out samples in a time series and use those for the test dataset. You need to cut out larger contiguous sequential time ranges and reserve those for your test set. Probably a single co…
According to the graph this seems to basically perfectly predict future stock price. I don't believe it's possible to be that accurate at all, what am I missing here?
Imagine dropping 10% of the pixels randomly spaced out in a historical graph and then try to fill them in. It's trivial because you can just average the previous and next sample and have an extremely high accuracy.
According to the graph this seems to basically perfectly predict future stock price. I don't believe it's possible to be that accurate at all, what am I missing here?
It's because the test dataset involves randomly choosing samples spread throughout the time series. Imagine dropping 10% of the pixels randomly spaced out in a historical graph and then try to fill them in. It's trivial because you can just average the previous and next sample and have an extremely high accuracy.
Actual way this experiment should work: feed the recurrent NN with stock markets data from the latest 10 years but the latest year. Then display the prediction for the latest year and the actual data. I want to see if it will match like that...
- An expanding window where you train on the first year of data and predict the second. Then train on the first two years and predict the third, etc.
- A rolling window where you train on years 1 and 2 and predict 3. Then train on 2 and 3 and predict 4, etc.
You need to show that your predictions work for any time period, not just the past year.
Actual way this experiment should work: feed the recurrent NN with stock markets data from the latest 10 years but the latest year. Then display the prediction for the latest year and the actual data. I want to see if it will match like that...