Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

A big bug casuse two errors #2

Open
Borrk opened this issue Jun 16, 2019 · 0 comments
Open

A big bug casuse two errors #2

Borrk opened this issue Jun 16, 2019 · 0 comments

Comments

@Borrk
Copy link

Borrk commented Jun 16, 2019

There is actually one fault that causes two errors:
the fault is when you load stock data, its order is ascending.
errors:

  1. your training data is in reverse order, which might won't impact the result, but it is unreasonable in reality.
  2. this error is actually series.
    when you merge the training and test data, the dates are not continuous as marked with the red circle in the figure.
    "dataset_total = pd.concat((dataset_train['Open'], dataset_test['Open']), axis = 0)"

actually, they should be re-ordered: dataset_test = dataset_test.sort_index(ascending=False).
image

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

No branches or pull requests

1 participant