Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Graph Neural Network

This example uses the Spektral GNN library to predict the heat capacity of various molecules in the QM9 dataset.

In particular this example shows Edge Conditioned Convolutional Networks but any dataset or network from the Spektral library should work the same.

Usage

Install the Poplar SDK following the the instructions in the Getting Started guide for your IPU system. Make sure to source the enable.sh script for poplar.

  1. Update pip: python3 -m pip install -U pip
  2. Install the Graphcore TensorFlow wheel: pip3 install tensorflow-2*
  3. Install the Spektral GNN library requirements: pip3 install -r requirements.txt
  4. Run the example: python3 qm9_ipu.py

The above script will download the QM9 dataset automatically which is just about 40MB in size.

Dataset references:

License

This example is licensed under the MIT license - see the LICENSE file at the top-level of this repository.

This directory includes derived work from the following:

Spektral, https://github.com/danielegrattarola/spektral

MIT License

Copyright (c) 2019 Daniele Grattarola

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.