Git Product home page Git Product logo

autoregressive-convolutional-neural-networks's Introduction

Significance-Offset Convolutional Neural Network (SOCNN)

PyTorch implementation of SOCNN preseneted in 2018 ICML paper, Autoregressive Convolutional Neural Networks for Asynchronous Time Series, Mikołaj Bińkowski, Gautier Marti, Philippe Donnat. This model proposes a autoregressive model for asynchronous time series data with an ability to adjust its regression weights based on input time-series.

Model architecture Figure

Some minor notices

  • [UCI dataset] In the paper, author asynchronously sampled the observations in UCI dataset with pre-defined patterns, however to fully consider the asynchronous dynamics of the data, I randomly sampled the timestep.
  • [UCI dataset] Unlike the paper, which suggests the probabilities of observing the attributes at each timestep, I just sampled the attributes from uniform distribution.
  • [UCI dataset] Attributes in UCI household dataset have different scales, so it seems that rescaling it during data preprocessing is mandatory. Also, results(mse losses) given in the paper cannot be achieved without rescaling or normalizing process. However, as such processing procedure is not explained in the paper, I did not implement it in my codes. So, if you are considering to further apply the model, you should implement normalizing or rescaling process.

Prepare dataset

In the paper, experiments are conducted on several time series data, which includes artifical dataset, UCI household electricity dataset and Hedge fund credit quotes data. Following codes will download and preprocess the required dataset.(So far, preprocessing stage has been implemented for UCI household electricity dataset.)

UCI household electricity dataset

# download dataset
curl -L -O -J https://archive.ics.uci.edu/ml/machine-learning-databases/00235/household_power_consumption.zip \
    -o data/household_power_consumption.zip
cd data
unzip household_power_consumption.zip
rm household_power_consumption.zip

# generate train/test dataset
python generate_data.py --fpath data/household_power_consumption.txt

Run codes

First, Configure settings for the training with yaml files. Template for yaml file is given in template config. Example template for UCI household dataset is presented in uci config.

Run the code with following codes

python run.py --config_file configs/default.yaml 

autoregressive-convolutional-neural-networks's People

Contributors

thlee93 avatar

Stargazers

 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.