Giter Site home page Giter Site logo

000alen / geo-deg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gmh14/geo-deg

0.0 0.0 0.0 62.39 MB

[ICML 2023] Hierarchical Grammar-Induced Geometry for Data-Efficient Molecular Property Prediction

Home Page: https://proceedings.mlr.press/v202/guo23h.html

License: MIT License

JavaScript 0.06% Python 68.38% CSS 9.92% HTML 21.64%

geo-deg's Introduction

Hierarchical Grammar-Induced Geometry for Data-Efficient Molecular Property Prediction

This repository contains the implementation code for paper Hierarchical Grammar-Induced Geometry for Data-Efficient Molecular Property Prediction (ICML 2023).

In this work, we propose a data-efficient property predictor (Geo-DEG) by utilizing a learnable hierarchical molecular grammar that can generate molecules from grammar production rules. Such a grammar induces an explicit geometry of the space of molecular graphs, which provides an informative prior on molecular structural similarity. The property prediction is performed using graph neural diffusion over the grammar-induced geometry. On both small and large datasets, our evaluation shows that this approach outperforms a wide spectrum of baselines, including supervised and pre-trained graph neural networks.

overview

Installation

Prerequisites

  • Pretrained GNN: We use this codebase for the pretrained GNN used in our paper. The necessary code & pretrained models are built in the current repo.

  • datasets: Download datasets and meta-geometry from this link.

Install Prerequisites

Install the dependencies for Geo-DEG following:

conda create -n Geo_DEG python=3.6
conda activate Geo_DEG
conda install scipy==1.2.1 pandas==0.23.4 numpy==1.16.2 scikit-learn
conda install pytorch torchvision torchaudio cpuonly -c pytorch
conda install -c rdkit rdkit
pip install ogb pykeops
pip install torchdiffeq -f https://pytorch-geometric.com/whl/torch-1.10.1+cpu.html
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-1.10.0+cpu.html
pip install torch-geometric
pip install torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-1.10.0+cpu.html
pip install setproctitle
pip install graphviz
pip install matplotlib
pip install typed-argument-parser
pip install tensorboardX
pip install hyperopt

Train

Training with MPN

cd GrammarDAG
python main.py --dataset crow_smiles_and_Tg_celsius.txt --feat_arch MPN --motif motif --adam

Training with GNN

cd GrammarDAG
python main.py --dataset crow_smiles_and_Tg_celsius.txt --feat_arch GNN --motif motif

Acknowledgements

The implementation of Geo-DEG is heavily based on Data-Efficient Graph Grammar Learning for Molecular Generation and graph-neural-pde , partly based on Molecular Optimization Using Molecular Hypergraph Grammar and Hierarchical Generation of Molecular Graphs using Structural Motifs.

Citation

If you find the idea or code useful for your research, please cite our paper:

@article{guo2023hierarchical,
  title={Hierarchical Grammar-Induced Geometry for Data-Efficient Molecular Property Prediction},
  author={Guo, Minghao and Thost, Veronika and Song, Samuel W and Balachandran, Adithya and Das, Payel and Chen, Jie and Matusik, Wojciech},
  year={2023}
}

Contact

Please contact [email protected] if you have any questions. Enjoy!

geo-deg's People

Contributors

gmh14 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.