Code Monkey home page Code Monkey logo

bioseq-gfn-al's Introduction

GFlowNets for Biological Sequence Design

This repo contains code for the paper Biological Sequence Design with GFlowNets.

The code has been extracted from an internal repository of the Mila Molecule Discovery project with some changes, so the hyperparameters might vary. Original commits are lost here, but the credit goes to @MJ10 and @bengioe. There are some stability issues in training for the GFP task with this repo.

Setup

The code has been tested with Python 3.7 with CUDA 10.2 and CUDNN 8.0.

  1. Install design-bench from our fork MJ10/design-bench. This fork only changes some dependencies and resolves some minor changes to make it compatible with our code. To install clone the repo and run pip install -e . in the directory where the repo is cloned.
  2. Instal the clamp-common-eval library from MJ10/clamp-gen-data. This library handles the loading of the AMP data as well as oracles. To install clone the repo and run pip install -r requirements.txt && pip install -e . in the directory where the repo is cloned.
  3. Run pip install -e requirements.txt in this directory to install the remaining packages.

Running the code

run_amp.py, run_gfp.py, and run_tfbind.py are the entry points for the experiments.

Example:

python run_tfbind.py --gen_do_explicit_Z 1 --acq_fn ucb --gen_num_iterations 2500 --gen_reward_exp 8 --gen_data_sample_per_step 8 --proxy_num_iterations 10000 --gen_Z_learning_rate 1e-1 --gen_learning_rate 1e-3

Please reach out to Moksh Jain, [email protected] for any issues, comments, questions or suggestions.

bioseq-gfn-al's People

Contributors

mj10 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.