Git Product home page Git Product logo

akirasosa / pre-training-mol Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 42 KB

Applying self pre-training method to GNN for quantum chemistry

Home Page: https://medium.com/vitalify-asia/applying-self-pre-training-method-to-gnn-for-quantum-chemistry-7933e4e40a6?sk=0a2a9b114cbeb524679a54cc3ab63527

License: MIT License

Dockerfile 0.48% Python 99.52%
machine-learning quantum-chemistry deep-learning self-supervised-learning graph-neural-networks

pre-training-mol's Introduction

Applying self pre-training method to GNN for quantum chemistry

This repository contains some experiments for Applying self pre-training method to GNN for quantum chemistry.

Prerequisites

  • Python 3.8
# Getting data
curl -sSL "https://www.dropbox.com/s/fifvs2gpdnocxxr/qm9.parquet?dl=1" > ./data/qm9.parquet

Self pre-training

Move under src/.

Estimate epochs to train.

python run_pre_train.py params/pre_train/001.yaml

Train with all data. It will take 200 epochs.

python run_pre_train.py params/pre_train/002.yaml

Main training

Move under src/.

Train without self pre-training (baseline).

python run_train.py params/train/001.yaml

Edit config to use pre-trained weight.

# src/params/train/002.yaml
pretrained_ckpt_path: xxx

Train with self pre-training.

python run_train.py params/train/002.yaml

Results

Pre-train Target Unit MAE Epochs
No μ Debye 0.0285 800
Yes μ Debye 0.0261 700

Notes

  • RAdam is used as an optimizer, so that no warmup is used.
  • EMA model is used for evaluation, so that no annealing is used.
  • Is should be evaluated with full cross validations with 4 or 5 folds, but I used only 1/4 folds because of no time.

pre-training-mol's People

Contributors

akirasosa avatar

Stargazers

 avatar Vikram avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.