Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
shiwentao00 committed Feb 26, 2021
1 parent 42a9b59 commit bcbae59
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# Molecule-RNN
Generate molecules for drug discovery.
Molecule-RNN is a recurrent neural network built with Pytorch to generate molecules for drug discovery. It is trained with the [Zinc](https://zinc.docking.org/) dataset.

## Training
1. Dowdload the SMILES files of molecules from [Zinc](https://zinc.docking.org/). Select "SMILES(*.smi)" and "Flat" opitions when downloading.

2. Modify the path of dataset in ```train.yaml``` to your downloaded dataset by setting the value of ```dataset_dir```.

3. Run the training script.
```python train.py```

The training loss:

## Sampling
We can generate molecules by sampling the model according to the output distribution.
```python sample.py```

0 comments on commit bcbae59

Please sign in to comment.