GithubHelp home page GithubHelp logo

tspfnbeats's Introduction

Experiments with N-BEATS (Neural basis expansion analysis for interpretable time series forecasting)

Project with a TensorFlow implementation of N-BEATS and experiments with ensembles.

Implementation

TensorFlow implementation of N-BEATS adapted from PyTorch variant found here

Generic

Generic Model Outputs

Interpretable

Interpretable Model Outputs

Weighted-Ensembling

If we view each ensemble member as an expert forecaster, then a gating network [1] can be used to select an expert or blend their outputs. In the blended approach the error of the output affects the weight updates of all the experts, and as such there is co-adaptation between them. I explore one way to reduce co-adaptations by using a dropout layer, implemented as Weighted-Ensemble of N-BEATS (WE N-BEATS).

During training, the (random) zeroing out of the gate’s outputs cancels the contribution of a member to the final error. The backpropagated gradient of loss would then update only those members which contributed to the loss as well as the gate network itself, thus learning proper blending weights and reducing co-adaptations.

WE-NBEATS

Ensemble Example Predictions

Example Predictions

Dependencies

This project has been developed with the following packages

  • tensorflow (2.3)
  • pyyaml (5.3.1)
  • pandas (1.1.1)
  • scikit-learn (0.23.2)
  • tqdm (4.48.2)
  • matplotlib (3.3.1)

[1]: R. A. Jacobs, M. I. Jordan, S. J. Nowlan, G. E. Hinton, “Adaptive Mixtures of Local Experts”, Neural Computation, 3: 79-87, 1991

[2]: L. Breiman, “Bagging predictors”, Machine Learning, 24(2):123–140, Aug 1996

tspfnbeats's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.