bowenliu16/rl_graph_generation
bowenliu16/rl_graph_generation has 359 GitHub stars and 107 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-21 05:35 UTC. Last push 2022-10-12.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
This repository is the official Tensorflow implementation of "Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation".
Developer ToolsREADME.md
OriginalGraph Convolutional Policy Network for Goal-Directed Molecular Graph Generation
This repository is the official Tensorflow implementation of "Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation".
Jiaxuan You*, Bowen Liu*, Rex Ying, Vijay Pande, Jure Leskovec, Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation
Installation
- Install rdkit, please refer to the offical website for further details, using anaconda is recommended:
conda create -c rdkit -n my-rdkit-env rdkit
- Install mpi4py, networkx:
conda install mpi4py
pip install networkx=1.11
- Install OpenAI baseline dependencies:
cd rl-baselines
pip install -e .
- Install customized molecule gym environment:
cd gym-molecule
pip install -e.
Code description
There are 4 important files:
run_molecule.pyis the main code for running the program. You may tune all kinds of hyper-parameters there.- The molecule environment code is in
gym-molecule/gym_molecule/envs/molecule.py. - RL related code is in
rl-baselines/baselines/ppo1folder:gcn_policy.pyis the GCN policy network;pposgd_simple_gcn.pyis the PPO algorithm specifically tuned for GCN policy.
Run
- single process run
python run_molecule.py
- mutiple processes run
mpirun -np 8 python run_molecule.py 2>/dev/null
2>/dev/null will hide the warning info provided by rdkit package.
We highly recommend using tensorboard to monitor the training process. To do this, you may run
tensorboard --logdir runs
All the generated molecules along the training process are stored in the molecule_gen folder, each run configuration is stored in a different csv file. Molecules are stored using SMILES strings, along with the desired properties scores.