Giter Site home page Giter Site logo

motifiesta's Introduction

MotiFiesta: Neural Approximate Motif Mining

The repository implements the MotiFiesta algorithm described in the following paper:

Carlos Oliver, Dexiong Chen, Vincent Mallet, Pericles Philippopoulos, Karsten Borgwardt. Approximate Network Motif Mining Via Graph Learning. Preprint 2022.

MotiFiesta is a graph neural network trained to detect over-represented subgraphs in a graph dataset.

Citation

@article{oliver2022approximate,
  title={Approximate Network Motif Mining Via Graph Learning},
  author={Oliver, Carlos and Chen, Dexiong and Mallet, Vincent and Philippopoulos, Pericles and Borgwardt, Karsten},
  journal={arXiv preprint arXiv:2206.01008},
  year={2022}
}

Setup

$ pip install . 

Build datasets

$ build_data_motifiesta 

Untar pre-trained models

Download pretrained models here and move the tarball to the root of this repository.

$ tar -xzvf models.tar.gz

Training a model

$ motifiesta train -h
$ motifiesta train -da <dataset_id> -n test

Making motif predictions

This is an example script for assigning each node in a graph to an integer motif ID using a pre-trained model. You can also launch this with the command $ motifiesta_example

from MotiFiesta.training.decode import HashDecoder

model_id = 'barbell-d0.00'
data_id = 'synth-distort-barbell-d0.00'
level = 3

decoder = HashDecoder(model_id, data_id, level)

decoded_graphs = decoder.decode()

for graph in decoded_graphs:
	print(f"Motif assignment for each node: {g.motif_pred}")

Scripts for generating figures in the paper are in fig_scripts/

Output from running mfinder are in data_mfinder and out_mfinder, the script minder_benchmark.py parses this output.

motifiesta's People

Contributors

cgoliver avatar

Stargazers

Joseph Viviano avatar paco xander nathan avatar Filip Cornell avatar  avatar Rob Jewsbury avatar  avatar danniel avatar Minghao Guo avatar Philip Hartout avatar Yong Z avatar MuhammadAnwar avatar Dexiong Chen avatar

Watchers

James Cloos avatar  avatar Leslie O'Bray avatar

Forkers

jklatt ceteri

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.