Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prediction graph is wrong #17

Open
mbrostami opened this issue Feb 25, 2024 · 0 comments
Open

Prediction graph is wrong #17

mbrostami opened this issue Feb 25, 2024 · 0 comments

Comments

@mbrostami
Copy link

mbrostami commented Feb 25, 2024

Hi
Thanks for the work you have done.
I think the prediction graph should be shown with t+timesteps if you use test_data.index. So in this case three step further than real value.

Based on my personal experience, using LSTM to predict stock market will end up with a model that takes the most influence from the current data frame (timewindow of each step) the model is trying to predict. So you will see when price goes up model predicts in up direction and if it goes down it predicts in down direction. The main problem might come from the usual loss functions that is being used like MSE. The loss function is low when price movement and prediction are going in the same direction after some training steps. But it doesn't cover good enough the edge cases when price direction changes which means the model can not be used in real world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant