This repository has our code for our model GraphCPA and its variants, created for CPSC 483.
- Download checkpoint of pretrained molecule encoder from here and place into jeffrey/base_checkpoint.
- Download de_train.parquet from here and place into the root of the repository.
- For all training and inference besides from inside the
jeffrey
(molecule transformer), create and activate a Conda environment fromenvironment.yml
. For the variant of the model with the molecule transformer injeffrey
, usetransformer_environment.yml
.
- Use
finetune.py
andinference.py
.
- Use
jeffrey/finetune.py
andinference.py
for the trainable molecule encoder. - Use
jeffrey/finetune_fixed.py
andinference_fixed.py
for the fixed molecule encoder.
- Use
andrew/finetune.py
andandrew/inference.py
.
- Use
bill/finetune.py
andbill/inference.py
.
- Upload the csv files from inference to this Kaggle competition for results on the private test set.