All Projects → lucfra → Lds Gnn

lucfra / Lds Gnn

Licence: other
Learning Discrete Structures for Graph Neural Networks (TensorFlow implementation)

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Lds Gnn

Gfa Spec
Graphical Fragment Assembly (GFA) Format Specification
Stars: ✭ 117 (-10.69%)
Mutual labels:  graph
Akutan
A distributed knowledge graph store
Stars: ✭ 1,616 (+1133.59%)
Mutual labels:  graph
Xnode
Unity Node Editor: Lets you view and edit node graphs inside Unity
Stars: ✭ 2,077 (+1485.5%)
Mutual labels:  graph
Ogre
Clojure library for querying Apache TinkerPop graphs
Stars: ✭ 118 (-9.92%)
Mutual labels:  graph
Promplot
Create plots from Prometheus metrics and send them to you
Stars: ✭ 125 (-4.58%)
Mutual labels:  graph
G2
📊 A highly interactive data-driven visualization grammar for statistical charts.
Stars: ✭ 11,020 (+8312.21%)
Mutual labels:  graph
X6
🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
Stars: ✭ 2,686 (+1950.38%)
Mutual labels:  graph
Npmcharts.com
Compare npm package downloads over time
Stars: ✭ 129 (-1.53%)
Mutual labels:  graph
Java Ds Algorithms
Data Structures and Algorithms in Java
Stars: ✭ 125 (-4.58%)
Mutual labels:  graph
Protostuff
Java serialization library, proto compiler, code generator
Stars: ✭ 1,730 (+1220.61%)
Mutual labels:  graph
Eon Chart
Realtime animated graphs with PubNub and C3.
Stars: ✭ 121 (-7.63%)
Mutual labels:  graph
Movies Javascript Bolt
Neo4j Movies Example with webpack-in-browser app using the neo4j-javascript-driver
Stars: ✭ 123 (-6.11%)
Mutual labels:  graph
Graphonline
This is source code of graphonline service. Graphonline helps visualize graph and applies a lot of algorithms.
Stars: ✭ 127 (-3.05%)
Mutual labels:  graph
Tagoverflow
An interactive map of Stack Exchange tags for all sites.
Stars: ✭ 117 (-10.69%)
Mutual labels:  graph
Asciigraph
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
Stars: ✭ 1,805 (+1277.86%)
Mutual labels:  graph
Gust
A small charting/visualization tool and partial vega implementation for Rust
Stars: ✭ 116 (-11.45%)
Mutual labels:  graph
React D3 Components
D3 Components for React
Stars: ✭ 1,599 (+1120.61%)
Mutual labels:  graph
Reddit Detective
Play detective on Reddit: Discover political disinformation campaigns, secret influencers and more
Stars: ✭ 129 (-1.53%)
Mutual labels:  graph
Arduino Plotter
An Arduino library for easy graphing on host computer via serial communication
Stars: ✭ 129 (-1.53%)
Mutual labels:  graph
Gaffer
A large-scale entity and relation database supporting aggregation of properties
Stars: ✭ 1,642 (+1153.44%)
Mutual labels:  graph

LDS-GNN

This is the accompany python package for the ICML 2019 paper Learning Discrete Structures for Graph Neural Networks

It implements the method LDS and its variant KNN-LDS and reproduces experiments reported in the paper.

alt text

Requirements

The code is written Python 3.6 and TensorFlow version 1 (tested on versions 1.12 and 1.16). It requires scikit-learn >= 0.21.2 and the python packages

  • FAR-HO, available here (advised branch: final_ICML2019)
  • GCN, available here
Datasets

UCI datasets should be loaded automatically, while graph-based datasets (Cora and Citeseer) are included in the GCN package, available here. Place the relevant files in the folder lds/data.

FMA dataset (we used the small version) should also be downloaded, please email the authors if interested.

Installation (optional)

python setup.py install

The scripts contained in lds.py should work also without installing the package.

Run

Navigate to lds_gnn folder.

The main script is in the file lds.py. The options are

-d: the evaluation dataset. Available datasets are iris, wine, breast_cancer, digits, 20newstrain, 
            20news10, cora, citeseer, fma. Default breast_cancer
-m: the method: lds or knnlds. Default knnlds
-s: the random seed. Default 1
-e: the percentage of missing edges (valid only for cora and citeseer dataset). Default 50

For experiments with incomplete graphs on Cora and Citeseer, run

python lds.py -m lds -e {an integer between 0 and 100} -d {cora or citeseer} -s {if you want to specify random seed}

For experiments in semi-supervised learning (with no input graph), run

python lds.py -m knnlds -d {any available dataset} -s {if you want to specify random seed}

The code will run a small grid search to select some method's parameters such as the (outer) optimization learning rate and the number of truncation steps to compute the hypergradeient. It will output the test accuracy of the best found model, according to the ''early stopping accuracy''. It will also create one log file per single experiment in the folder lds/results, which can be successively loaded (e.g. in a notebook) with the function lds.load_results() for inspection and visualization .

Please note that the package does not include implementations of baseline methods.

Licence

Please take a look at LICENCE.txt

Cite

If you use this package, please cite

@InProceedings{franceschi2019learning,
 title = 	 {Learning Discrete Structures for Graph Neural Networks},
 author = 	 {Luca Franceschi and Mathias Niepert and Massimiliano Pontil and Xiao He},
 booktitle = 	 {Proceedings of the 36th International Conference on Machine Learning},
 year = 	 {2019}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].