Giter Club home page Giter Club logo

dsnn's Introduction

Deep Set Neural Networks (DSNN)

alt text

This repository provides a proof-of-concept implementation for the manuscript Deep Sets Are Viable Graph Learners.

DSNN Model

DSNN computes predictions on graphs, where the graph is represented as a multiset of nodes. Positional embeddings are computed using the following metrics:

  • Centrality measures (e.g., betweenness, eigenvalue, laplacian centrality).
  • The minimal distance to the node(s) with the highest/lowest centrality.
  • The sum of neighboring nodes' features.

DSNN has two components (MLP_1 and MLP_2), each with nine layers. These components have a latent dimension of 64 and utilize residual connections.

Baselines

For comparison, we employ models from PyTorch Geometric as our baselines, specifically GIN, PNA, and GCN. These models are configured with five layers and a latent dimension of 64.

Results

The number of parameters and the accuracy (higher is better) of each model are:

alt text

Run DSNN

Locally

You can run DSNN locally using main.ipynb. First, install Anaconda, then create an environment with the Python dependencies (tested on OS X):

conda env create -f environment.yml -n dsnn
conda activate dsnn
jupyter lab

Then just run the notebook(s) from start to finish.

Via Docker

Install docker and then:

docker pull gerritgr/dsnn:latest
docker run -p 8888:8888 gerritgr/dsnn:latest

You need to manually copy the URL to your browser, navigate to the notebook, and activate the dsnnenv kernel (Kernel -> Change Kernel...).

Errata

  • The positional encodings contain a sum of the values of all neighboring nodes (not only of their positional encodings).
  • Accuracy decreased due to a calculation error in the split of train/val/test compared to the revision version.

dsnn's People

Contributors

gerritgr avatar

Watchers

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