Giter VIP home page Giter VIP logo

viforssms's Introduction

The Neural Moving Average Model for Scalable Variational Inference of State Space Models

This is code for the Neural Moving Average Model paper.

Dependencies

  • TensorFlow 1.8.0
  • NumPy 1.14.5

AR code

Structure

The folder dat contains data generated by AR_dat_gen. This data is then used by AR.py which trains a model. Both of these python files can be called by main.py. main.py uses the hyperparameters defined in hyperparameters.txt to (a) generate synthetic data and then (b) fit the model to that synthetic data.

Running the Experiments

After downloading the source, inference for the AR(1) process can be performed using the default values (as listed in the paper):

python main.py hyperparameters.txt

This uses TensorBoard to visualise training losses and parameter posteriors. Data for this purpose is saved into a directory called 'train'. To visualise this in TensorBoard call (in your working directory):

tensorboard --logdir=train/

and navigate to localhost:6006 in your browser.

The data-generation process and/or the inference proceudre can be modified by either editing the values in the hyperparameter text file or appending command line options. The command line options are detailed as follows:

Command Line Options
Option Description
-T, -time Total time
-i, -impute Observations every impute time step
-t, -theta Theta used for generation
-x, xzero Initial condition
-o, -obs_std Observation stdev
-k, -kernel_len Kernel length
-b, -batch_dims Batch dimensions
-f, -feat_window Feature window
-repair Print defaults to be put in txt file

Other code

The code for the other experiments can be run using the lotka_volterra_partial.py, fitz_nag_NVP.py and SV_dense.py scripts.

viforssms's People

Contributors

tom-ryder avatar dennisprangle avatar

Stargazers

Nipun Batra avatar Seiya avatar  avatar Wally Xie avatar Gary Mirams avatar singpo avatar Pedro L. C. Rodrigues avatar  avatar zhoudi avatar 爱可可-爱生活 avatar

Watchers

James Cloos avatar  avatar  avatar

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.