Comments (10)
Fixed in fb1f612
from n-beats.
[UPDATE] I find the origin paper mentioned that the stop gradient in denominator, but I dont see this trick in his code and that may result in relative bad performance. I will keep investigating it.
from n-beats.
The linear space function should use an adapted horizon,
def linear_space(backcast_length, forecast_length, is_forecast=True):
# ls = K.arange(-float(backcast_length), float(forecast_length), 1) / forecast_length
# return ls[backcast_length:] if is_forecast else K.abs(K.reverse(ls[:backcast_length], axes=0))
horizon = forecast_length if is_forecast else backcast_length
return K.arange(0,horizon)/horizon
from n-beats.
@fecet thank you very much!! Can you detail a bit more what you found? Is it just changing the linear_space
and it works?
from n-beats.
And yes please post the full code it's very interesting!
from n-beats.
@fecet thank you very much!! Can you detail a bit more what you found? Is it just changing the
linear_space
and it works?
Yes, in former code, the denominator is always forecast_length
, when backcast_lenghth
is large, like 7*forecast_length
the value in linear_space
will reach up to 7
, result in output explode in trend block since it will be multiplied by 7*p
several times. And smape_loss
's own property make it become 200
as y_pred
dominate.
Thanks for your interest, I will create a repository for my reimplement later. BTW, I found this behaviour by your keract tool!
from n-beats.
@fecet Very happy to hear that!! Please post your results and code. Thank you for using keract. I'm happy it helps ;)
from n-beats.
Here is my repo, any comments would be highly appreciated.
from n-beats.
thank you so much I'm going to have a look shortly
from n-beats.
I added a link to your repo in the README btw
from n-beats.
Related Issues (20)
- Is torchvision really a requirement? HOT 2
- GENERIC_BLOCK usage generating TypeError HOT 3
- How to prevent deterministic behaviour HOT 5
- Trend coefficients in pytorch implementation HOT 1
- Return backcast for Keras model HOT 4
- Incorporating deterministic exogenous features HOT 3
- Multidimensional input fails HOT 1
- How to work with multivariate data? HOT 1
- GenericBlock Module Issues HOT 8
- Polynomial basis for backcast HOT 2
- The parameters 'exo_dim' and 'exo_shape' in the class 'NBeatsNet' HOT 1
- how to use/deploy n-beats for real world problems when the algorithm uses teacher forcing? HOT 1
- Keras backend does not support input_dim > 1 HOT 1
- Is there a unsupervised version of n-beats? HOT 1
- Can we use a pandas dataframe with multiple dependent variables? HOT 11
- Installation issue with tensor flow 2.5.0 HOT 8
- No module named 'nbeats_keras' HOT 1
- Delete
- How to draw the picture in the paper? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n-beats.