Giter Site home page Giter Site logo

rnn-kernel's Introduction

Framing RNN as a kernel method: A neural ODE approach

Requirements

For reproductibility purposes, we advise to install the project in a dedicated virtual environment to make sure the specific requirements are satisfied. Recommended Python version: 3.8.x.

To install requirements:

pip install -r requirements.txt

Additional pip requirements:

pip install tqdm joblib librosa prefetch_generator python_speech_features

In addition, this package requires installing signatory, which is not entirely straightforward. The following command should work on Linux and Windows:

pip install signatory==1.2.4.1.7.1 --no-cache-dir --force-reinstall

Note that the default MacOS C++ compiler does not support openmp, which is required to compile signatory. A solution is to install the llvm compiler, then set the environment variables so that pip uses this compiler. The following snippet should work.

brew install llvm libomp
export CXX=/usr/local/opt/llvm/bin/clang
export LD=/usr/local/opt/llvm/bin/clang
export CC=/usr/local/opt/llvm/bin/clang
pip install signatory==1.2.4.1.7.1 --no-cache-dir --force-reinstall

For more detail, see their documentation.

Run google speech commands experiment

python main.py --adversarial-exp google_speech

Download speech commands at: http://download.tensorflow.org/data/speech_commands_v0.02.tar.gz

Set the gsc_path in adversarial_experiment.py to /path/to/speech_commands_v0.02.

Testing

python main.py --taylor-exp test
python main.py --adversarial-exp test

Reproducing the paper figures

python main.py --taylor-exp final
python main.py --adversarial-exp spirals_penalization

rnn-kernel's People

Contributors

ebanflo42 avatar pierremarion23 avatar afermanian 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.