Skip to content

Latest commit

 

History

History

baseline_chemprop

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Code to obtain the ChemProp results

We use chemprop version 1.5.0

  • src/cgr.py is the main script used to train the model for the specified dataset, atom-mapping regime, and split type. It can be run, for example, for the GDB7-22-TS using the True atom-mapping, random splits, and implicit H nodes with
python src/cgr.py --gdb --true

Note that the training creates a lot of directories and output files so it is more convenient to run the script from a dedicated directory.

Patch

The original chemprop code cannot process hypervalent Si compounds of the Proparg-21-TS dataset. The patch that disables the valence check can be found at src/chemprop.patch Run

$ patch < src/chemprop.patch

to apply it and

$ patch -R < src/chemprop.patch

to revert. (Modification of the paths may be needed.)