You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be noticed by executing the following code after split data into training and test sets... X_train.iloc[0].to_numpy() which outputs array([121.795 , 120.65533, 121.33866, 118.67466, 108.58483, 125.455 , 123.65499]) where the actual array values should be array([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() outputs array([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 is X_all = X_all[:, ::-1]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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