Coder Social home page Coder Social logo

mcneela / mixed-curvature-gcn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fal025/product_hgcn

2.0 0.0 0.0 186.49 MB

Graph Convolutional Networks on Cartesian products of constant curvature manifolds.

Home Page: http://mcneela.github.io

License: Apache License 2.0

Python 100.00%
deep graph-co machin geometric-d

mixed-curvature-gcn's Introduction

Mixed-Curvature Product Space GCN

Adapted from https://github.com/HazyResearch/hgcn and further forked from https://github.com/fal025/product_hgcn.

The dependencies are the following:

virtualenv -p [PATH to python3.7 binary] hgcn
source hgcn/bin/activate
pip install -r requirements.txt

To run additional tests, please use train.py This script trains models for link prediction and node classification tasks. Metrics are printed at the end of training or can be saved in a directory by adding the command line argument --save=1.

For our purposes, the following command may be more useful than others:

python3 train.py --task lp --dataset <dataset_name> --model HGCN --lr 0.01 --dim <num_dim> --num-layers 2 --act relu --bias 0 --dropout 0.5 --weight-decay 0.001 --manifold <choice_of_prod_space> --log-freq 5 --cuda 0 --c 1

To specify a choice of product space use a string of the form <H{x}E{y}S{z}> x, y, and z indicate the number of copies of Hyperbolic, Euclidean, and Spherical space, respectively. An example input would be H1E2S2.

Citation

The modified Mixed-Curvature Product Space GCN is described in the following preprint:
Product Manifold Representations for Learning on Biological Pathways
Daniel McNeela, Frederic Sala+, Anthony Gitter+.
arXiv:2401.15478. 2024

See also the hgcn repository references.

License

The code is available under the Apache License 2.0. Some of the source code is derived from the unlicensed hgcn and product_hgcn repositories. The named contributors of those repositories have been added to the license copyright.

The hgcn repository notes additional code was forked from the following repositories

mixed-curvature-gcn's People

Contributors

mcneela avatar fal025 avatar agitter avatar

Stargazers

Maciej Falkiewicz avatar Varun Shivashankar 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.