Giter Site home page Giter Site logo

rkn's Introduction

Recurrent Kernel Networks for sequence data

This is a Pytorch implementation for reproducing the results of the paper

Dexiong Chen, Laurent Jacob, Julien Mairal. Recurrent Kernel Networks. In NeurIPS, 2019.

Installation

We recommend users to use anaconda to install the following packages (link to pytorch)

numpy
scipy
scikit-learn
pytorch=1.2.0
biopython
pandas

The code uses Pytorch just-in-time (JIT) to compile cpp and cuda extension code. Thus, you need to download CUDA Toolkit 9.0 to some $cuda_dir and then run

export CUDA_HOME="$cuda_dir"
export TORCH_EXTENSIONS_DIR="$PWD/tmp"

export PYTHONPATH=$PWD:$PYTHONPATH

where the compiled extension files will be saved to TORCH_EXTENSIONS_DIR.

Training models on SCOP 1.67 datasets

Download SCOP 1.67 fold recognition datasets and then do mkdir data and put the datasets to ./data/SCOP167-fold/.

To train a model on a.102.1, with BLOSUM62 embedding, k=14, sigma=0.4 and max pooling, run

cd experiments
python train_scop.py --pooling max --embedding blosum62 --kmer-size 14 --alternating --sigma 0.4 --tfid 0

Train multiclass model on SCOP 1.75 and test on SCOP 2.06

First download SCOP 1.75 and SCOP 2.06 which were downloaded from DeepSF and preprocessed. Then unzip them respectively to ./data/SCOP175 and ./data/SCOP206.

Then run

cd experiments
python train_scop175.py --alternating

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.