Giter Club home page Giter Club logo

gcn_metric_learning's Introduction

Metric Learning using Graph Convolutional Neural Networks (GCNs)

The code in this repository implements a metric learning approach for irregular graphs. The method has been applied on brain connectivity networks and is presented in our papers:

overview

overview

The code is released under the terms of the MIT license. Please cite the above paper if you use it.

There is also implementations of the filters and graph coarsening used in:

The implementaton of the global loss function is based on:

Installation

  1. Clone this repository.

    git clone https://github.com/sk1712/gcn_metric_learning
    cd gcn_metric_learning
  2. Install the dependencies. Please edit requirements.txt to choose the TensorFlow version (CPU / GPU, Linux / Mac) you want to install, or install it beforehand.

    pip install -r requirements.txt  # or make install

Using the model

To use our siamese graph ConvNet on your data, you need:

  1. pairs of graphs as matrices where each row is a node and each column is a node feature,
  2. a class label for each graph,
  3. an adjacency matrix which provides the structure as a graph; the same structure will be used for all samples.

Please get in touch if you are unsure about applying the model to a different setting.

gcn_metric_learning's People

Contributors

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