nla-group / abba-lstm Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hello,
I found a few inconsistencies in the paper and the code. Let me know what you think about it.
In the proposed method, ABBA is proposed as a preprocessing of the time series. There is a clustering part in the ABBA preprocessing. As the task consists of predicting the future, the clustering should take into account those future steps: as we still do not know those updates, they should not be used during the preprocessing.
There is a huge problem in defining the training and test sets as the ABBA preprocessing changes the sampling of the time series. If we first split the dataset, the ABBA preprocessing is likely to have outliers directly at the end of the train set and the beginning of the test set. Since those samples are extremely important, they should not be neglected. If we first do the ABBA preprocessing, we have the problem stated in the first paragraph.
Because of this logical problem, there is no way to code something that works logically. So to avoid that, in the code, it seems like you used the whole time series for training (even the test set).
train = ts[:-fcast_len]
test = ts[-fcast_len:]
# Build ABBA constructor
abba = ABBA(tol=0.05, max_k = 10, verbose=0)
# LSTM model with ABBA
t0 = time.time()
f = forecaster(ts, model=VanillaLSTM_keras(lag=lag), abba=abba)
f.train(patience=patience, max_epoch=10000+patience)
forecast1 = f.forecast(len(test)).tolist()
Moreover, in f.forecast(len(test)).tolist()
, the number of data samples is supposed to correspond to the number of time steps in the original time series while in your function, you predict len(test)
ABBA symbols...
I hope it helps.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.