Fine-tuning the GROVER pretrained models for molecular properties prediction.
GROVER is short for Graph Representation frOm self-superVised mEssage passing tRansformer which is a Transformer-based self-supervised message-passing neural network by Rong and colleagues as in the paper: Self-Supervised Graph Transformer on Large-Scale Molecular Data. The original authors have their own implementation of the model, inluding finetuning tasks.
This repo I created is to mimic the finetuning process for the sake of exploring GROVER and learning pytorch.
- Create and activate a conda environment:
conda create --name grover python=3.6.8
conda activate grover
- Install requirements from
requirements.txtfile:
conda install -f requirements.txt
There are two pretrained models provided by the original authors. Download, extract and save the .pt file in a directory of preference.
Edit the hyper-parameters in the train_script.py and run this file to start finetuning the GROVER
python train_script.py
- Xavier normal initialization works best.
- Untrainable without loading the pretrained weight