Dataset ordering error in N-BEATS algorithm as well Model_9 #393
Nikhil-Nandam
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The data we're using to train the N-Beats Algorithm has a slight flaw associated with it!!
In the dataset the windowed prices are arranged in the reverse order!!!
In essence, the ordering is as follows...
instead of
This can be noticed by executing the following code after split data into training and test sets...
X_train.iloc[0].to_numpy()
which outputsarray([121.795 , 120.65533, 121.33866, 118.67466, 108.58483, 125.455 , 123.65499])
where the actual array values should bearray([123.65499, 125.455 , 108.58483, 118.67466, 121.33866, 120.65533, 121.795 ])
If my above intuition is correct, then the corrective code to produce the right order of BTC prices from the shifted data frame is
After executing the above line of code,
X_train.iloc[0].to_numpy()
outputsarray([123.65499, 125.455 , 108.58483, 118.67466, 121.33866, 120.65533, 121.795 ])
The same is the case when loading full dataset to
model_9
. The corrective code for that corresponding dataset isX_all = X_all[:, ::-1]
Thanks in advance 😀 !!
Beta Was this translation helpful? Give feedback.
All reactions