gran4 / AI-InvestiBot

Innovative, high quality stock bot
MIT License
19 stars 6 forks source link

There is a gap in the y-axis between y_train and y_test when creating graph. #1

Closed gran4 closed 1 year ago

gran4 commented 1 year ago

It seems to be created after create_sequences. train_data and test_data are plotted fine, but Y_train and Y_test are disconnected on the y-axis

gran4 commented 1 year ago

I do not believe it matters so I will close it.

gran4 commented 1 year ago

It does if you want to plot it... I think I will add that later

gran4 commented 1 year ago

The more the model is trained the more scuffed it is. This is a serious issue, but I do not understand the problem. It does not seems to be a stock split.

20 epochs

Screen Shot 2023-06-20 at 8 10 31 PM

1000 epochs

Screen Shot 2023-06-20 at 8 06 38 PM
gran4 commented 1 year ago

The problem was in the test, not the model. It was being split incorrectly, which was not accounting for the first num_days being ignored. Now, testing can happen more accurately