Giter Club home page Giter Club logo

rna_ne's Introduction

RNA Nucleotides Embeddings

Deeply learning 3D-aware node embeddings for RNA secondary structure graphs.

Pretraining using context prediction

Learn unsupervised node embeddings using method from https://arxiv.org/abs/1905.12265

To train model on RNA graphs in ./directory:

First preprocess graphs (compute angles and one-hot features from the rna_classes features) by

python data_processing/process_graphs.py -i [directory] -o [preprocessed_dir]

Then learn embeddings using context prediction by running

python pretrain_context.py --train_dir [preprocessed_dir] 

Default values for context prediction hyperparams are K=1, r1 = 1, r2=2. (K,r1,r2) can be changed by adding arguments

python train.py --train_dir [preprocessed_dir] --K ... --r1 ... --r2 ...

Annotating graphs

To compute embeddings for graphs in ./directory and save them to a new dir, run

python embeddings.py -i [directory] -o [write_directory]

An example of how to use a saved model to warm-start embeddings with the pretrained embeddings is given in tasks/train_mg.py

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.