Code Monkey home page Code Monkey logo

graph-neural-networks's Introduction

Graph Neural Networks for Quantum Chemistry

Implementation and modification of Message Passing Neural Networks as explained in the article proposed by Gilmer et al. [1].

Requirements:

  • python 3.5
  • pytorch=0.1.12
  • networkx=1.11
  • tensorboard
  • tensorboard_logger
  • numpy
  • joblib

Setup

Using conda create command to create a conda environment.

$ module add anaconda3/4.2.0
$ conda create -n python-3.5 python=3.5
$ source activate python-3.5

Installation

$ pip install numpy tensorboard tensorboard_logger joblib
$ conda install -c rdkit rdkit 
$ conda install networkx=1.11
$ conda install pytorch=0.1.12 cuda75 -c soumith
$ git clone https://github.com/ifding/graph-neural-networks.git
$ cd graph-neural-networks

Examples

QM9

Download and convert QM9 data set:

$ python3 download_data.py qm9 -p /scratch3/feid/mpnn-data/

Train and test MPNN (default) and MPNNv2 model with GPU (default) or not:

$ python3 main.py --datasetPath /scratch3/feid/mpnn-data/qm9/dsgdb9nsd/

$ python3 main.py --datasetPath /scratch3/feid/mpnn-data/qm9/dsgdb9nsd/ --no-cuda

$ python3 main.py --datasetPath /scratch3/feid/mpnn-data/qm9/dsgdb9nsd/ --model MPNNv2
    
$ python3 main.py --datasetPath /scratch3/feid/mpnn-data/qm9/dsgdb9nsd/ --no-cuda --model MPNNv2

$ python3 main.py --datasetPath /scratch3/feid/mpnn-data/qm9/dsgdb9nsd/ --model MPNNv3
    
$ python3 main.py --datasetPath /scratch3/feid/mpnn-data/qm9/dsgdb9nsd/ --no-cuda --model MPNNv3

Bibliography

graph-neural-networks's People

Watchers

 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.