Giter Site home page Giter Site logo

tudataset's Introduction

TUDataset

Source code for our ICML 2020 Workshop on Graph Representation Learning and Beyond (GRL+ 2020) paper "TUDataset: A collection of benchmark datasets for learning with graphs". This repository contains graph kernel and GNN baseline implementations, data loaders, and evaluations scripts.

See graphlearning.io for documentation on how to use this package.

Installation

First make sure that you have all requirements installed.

Requirements

  • networkx
  • numpy (somewhat recent version)
  • pandas (somewhat recent version)
  • Python 3.x
  • scipy (somewhat recent version)
  • sklearn (somewhat recent version)
  • torch 1.5
  • torch-geometric 1.5

If you want to use the kernel baselines, you will further need:

  • eigen3
  • g++
  • pybind11

Compilation of kernel baselines

To execute the kernel baselines you have to compile the Python package. If you just want to use the GNN baselines, data loaders, and evaluation scripts, you can skip this step.

Execute the following steps:

$ cd tud_benchmark/kernel_baselines

If you are using a Linux system, run

$ g++ -O3 -shared -std=c++11 -fPIC `python3 -m pybind11 --includes`  kernel_baselines.cpp src/*cpp -o ../kernel_baselines`python3-config --extension-suffix`

on MacOS, run

$ g++ -O3 -shared -std=c++11 -undefined dynamic_lookup `python3 -m pybind11 --includes`  kernel_baselines.cpp src/*cpp -o ../kernel_baselines`python3-config --extension-suffix`

You might need to adjust your path to pybind11 and eigen3 in kernel_baselines.cpp, kernel_baselines/src/AuxiliaryMethods.h, and kernel_baselines/src/Graph.cpp.

Usage

See tud_benchmark/main_kernel.py and tud_benchmark/main_gnn.py for baseline and evaluation examples. More details can be found at graphlearning.io.

Terms and conditions

Please feel free to use our code. We only ask that you cite:

@inproceedings{Morris+2020,
    title={TUDataset: A collection of benchmark datasets for learning with graphs},
    author={Christopher Morris and Nils M. Kriege and Franka Bause and Kristian Kersting and Petra Mutzel and Marion Neumann},
    booktitle={ICML 2020 Workshop on Graph Representation Learning and Beyond (GRL+ 2020)},
    pages={},
    url={www.graphlearning.io}
    year={2020}
}

Contact Information

If you have any questions, send an email to Christopher Morris (christopher.morris at tu-dortmund.de).

tudataset's People

Contributors

chrsmrrs avatar frareba avatar pmutzel 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.