GithubHelp home page GithubHelp logo

strode's Introduction

Stochastic Boundary Ordinary Differential Equation (STRODE)

This is the authors' official PyTorch implementation for STRODE. This repo contains code for experiments in the ICML 2021 paper 'STRODE: Stochastic Boundary Ordinary Differential Equation'.

Project Description

The precise timing of each item in real-world data streams can carry important information about the underlying dynamics. However, most algorithms for time-series modeling, e.g., latent ordinary differential equation (ODE), fail to infer timings (timestamps) directly from visual or audio inputs, and still require a large amount of training data with timing annotations. Inspired by neuroscience perspectives on time perception, we generalize neural ODE in handling a special type of boundary value problem with random boundary times and propose a probabilistic ordinary differential equation (ODE), called Stochastic boundaRy ODE (STRODE). Extensive experiments show that STRODE successfully learns both the timings (timestamps) and the dynamics of time series data without requiring any timing annotations during training.

Method Overview

How to run

Environment

  • Python 3.7
  • PyTorch 1.7.1

Running experiments

Toy Dataset

For training and evaluation on the toy dataset, run the following script:

cd toy
python run.py --dataset exp

where --dataset specifies the dataset used in the experiments. For more specifications of the experiments, see details in config.py.

Rotating MNIST Thumbnail

For training and evaluation on the rotating MNIST thumbnail, run the following script:

cd rotatingMNIST
python run.py --model strode --dataset exp

where --model and --dataset specify the model and the dataset used in the experiments. For more specifications of the experiments, see details in config.py.

Data

You can directly set isLoad=False(default) in config.py and run the script above and new datasets will be automatically generated. ./data/MNIST/ contains the processed MNIST dataset. You can refer to torchvision.datasets.MNIST for details.

Citation

If you use STRODE or this codebase in your own work, please cite our paper:

@inproceedings{huang2021strode,
  title={STRODE: Stochastic Boundary Ordinary Differential Equation},
  author={Huang, Hengguan and Liu, Hongfu and Wang, Hao and Xiao, Chang and Wang, Ye},
  booktitle={International Conference on Machine Learning},
  pages={4435--4445},
  year={2021},
  organization={PMLR}
}

License

MIT

strode's People

Contributors

waffle-liu avatar glenhghuang avatar js05212 avatar

Stargazers

 avatar Xiangming (Brian) Gu avatar Yongtuo Liu avatar  avatar Tijin Yan avatar StepinSilence avatar Lichi Li avatar Kaizhi Qian avatar  avatar Wanyu Lin avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

glenhghuang

strode's Issues

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.