Code Monkey home page Code Monkey logo

cdt-ccm-aae's Introduction

CDT_AAE

This is the official implementation of the paper "Change Detection in Graph Streams by Learning Graph Embeddings on Constant-Curvature Manifolds" by D. Grattarola, D. Zambon, C. Alippi, and L. Livi. (2018, https://arxiv.org/abs/1805.06299).

This code provides a proof of concept for the experiments conducted in the paper, and contains all the necessary elements to apply the methodology on a generic problem.

Please cite the paper if you use any of this code for your research:

@article{grattarola2019change,
  title={Change detection in graph streams by learning graph embeddings on constant-curvature manifolds},
  author={Grattarola, Daniele and Zambon, Daniele and Livi, Lorenzo and Alippi, Cesare},
  journal={IEEE transactions on neural networks and learning systems},
  year={2019},
  publisher={IEEE}
}

Setting up

The code is implemented for Python 3 and tested on Ubuntu 16.04.
To run the code, you will need a number of libraries installed on your system:

  • Keras (pip install keras), a high-level API for deep learning;
  • Spektral (pip install spektral), a Keras extension to build graph neural networks;
  • CDG (see README on Github), a library for change detection tests and non-Euclidean geometry.

The code also depends on Numpy, Scipy, Pandas, Scikit-learn, and Joblib.

Running experiments

The src folder includes several scripts to run the different versions of the algorithm proposed in the paper:

  • main_prior.py, trains the AAE using the non-Euclidean prior;
  • main_geom.py, trains the AAE using the geometric discriminator;
  • main_cdt.py, runs the change detection tests on the data saved by the previous scripts;

To simplify the workflow, the repository includes a main.sh script to run a full experiment on Delaunay triangulations.

About

For a simplified explanation of the paper, check out this blog post.

cdt-ccm-aae's People

Contributors

danielegrattarola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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