Coder Social home page Coder Social logo

sourav-roni / bcr-de Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 13.98 MB

Code for "Controlled Differential Equations on Long Sequences via Non-standard Wavelets" paper. ICML23

Home Page: https://sourav-roni.github.io/

Python 46.05% Jupyter Notebook 53.95%
controlled-differential-equations machine-learning neural-differential-equations neural-networks pytorch time-series wavelets coupled-differential-equations locally-connected-convolution partially-unshared-convolution

bcr-de's Introduction

Controlled Differential Equations on Long Sequences via Non-standard Wavelets (ICML 23)

[Paper] [Poster] [Slide]

Sourav Pal, Zhanpeng Zeng, Sathya N. Ravi, Vikas Singh

Framework

Installation

The code is written to be compatible with Python3.6+ . We outlay steps to create the required environment and install dependencies, using Anaconda and pip. Please refer to their installations if you already don't have them.

conda create --name BCRDE python=3.9

Install dependencies using the provided requirement file.

pip install -r req.txt

Additionally, one needs to install the Pytorch Wavelets library. We list the install instruction below:

git clone https://github.com/fbcotter/pytorch_wavelets
cd pytorch_wavelets
pip install .

Code

All code resides in the folder BCR_DE, including model files, scripts to run the experiments in the paper as well as configuration files as and when required. Please check the corresponding README for instructions on running the experiments. We also include a notebook to demonstrate the non-standard wavelet decomposition.

We propose a variant of locally connected convolution in our paper termed as Partially Unshared Convolution (PUC) layer which helps in the paremeterization required for BCR-DE. We provide two implementations including one which is sufficiently faster to use via einops. Note that these classes are written using PyTorch and can be used as plug and play in relevant deep learning models, the code for which is present in the BCR-DE model file.

Data

Please find the datasets used for experiments reported in the paper here Google Drive. These include data from BIDMC32 dataset, Eigenworm dataset, and TSER, we include it here for the ease of use. Please download the folder, unzip it and place it parallel to the BCR_DE folder. This will allow to use the code out of the box, else you will need to provide the specific paths to the data while running the experiments.

The data for the Hodgkin–Huxley model was generated using code from pyHH. We have included the sample data used in the experiments in the above data folder, since it takes quite some to generate.

Citation

If you find our paper/code useful, please cite our paper at ICML 23

@InProceedings{pmlr-v202-pal23b,
  title = 	 {Controlled Differential Equations on Long Sequences via Non-standard Wavelets},
  author =       {Pal, Sourav and Zeng, Zhanpeng and Ravi, Sathya N. and Singh, Vikas},
  booktitle = 	 {Proceedings of the 40th International Conference on Machine Learning},
  pages = 	 {26820--26836},
  year = 	 {2023},
  volume = 	 {202},
  series = 	 {Proceedings of Machine Learning Research},
  publisher =    {PMLR},
}

bcr-de's People

Stargazers

 avatar  avatar  avatar

Watchers

 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.