Skip to content

lllfq/DLGN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DLGN (De Novo Generation of Dual-Ligand Molecules Using Adversarial Training and Reinforcement Learning)

This is an PyTorch implementation of DLGN.

Requirement

Modern NVIDIA GPU
CUDA 10.1
python 3.7
pytorch 1.5.1
RDKit 2020.03.2.0
scikit-learn 0.24.0
Numpy 1.18.5
Fcd 1.1 (see https://github.com/bioinf-jku/FCD )
MOSES (see https://github.com/molecularsets/moses)
tqdm 4.46.1

Step1: Pre-training a prior generator

In the training process, ChEMBL dataset is used to pretrain a prior generator to learn basic SMILES grammar. Here we use Teacher’s forcing which uses the preceding ground truth tokens in the string instead of the tokens previously predicted by the network as input and maximizes the predicted probability of the next ground truth tokens at each step. It is actually a Maximum Likelihood Estimate. To train the model, run

python MLE.py 

Step2: Fire-tuning by using DLGN framework

The DLGN generator is initialized as the pretrained prior network, and then fine-tuned by training on DRD2/HTR1A training datasets via adversarial training and policy gradient. To train the model, run

python PolicyGradient.py 

Step3: Evaluation

python test.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages