Created by Lei Cai.
We employ Bi-direction GRU and attention module to predict the property of a given molecule. The overal framework can be shown as
Python 2.7 +
Tensorflow , Numpy
The molecule is converted to SMILE string as input for our model.
We release the two datasets for emission and excitation prediction tasks.
emission_input.txt contains SMILE strings to train the model. emission_output.txt contains the corresponding emission value for the molecule in emission_input.txt
emission_input_test.txt contains SMILE strings to test the model. emission_output_test.txt contains the corresponding emission value for the molecule in emission_input_test.txt
python sensor_train_emission.py --resume False --save_model True --test False
python sensor_train_emission.py --resume True --test True --test_path "path to the model"
We provide two well trained model for the two tasks.
For emission prediction tasks, the results can be obtained by:
python sensor_train_emission.py --resume True --test True --test_path ./work_dir/run1586726418/checkpoints/SensorRNN.ckpt-15
For excitation prediction tasks, the results can be obtained by:
python sensor_train_excitation.py --resume True --test True --test_path ./work_dir/run1582060157/checkpoints/SensorRNN.ckpt-16
Part of code borrow from https://github.com/snakeztc/NeuralDialog-CVAE. Thanks for their excellent work!