Graph Neural Network Tensorflow implementation
Project description
Graph Neural Network Model
This repo contains a Tensorflow implementation of the Graph Neural Network model.
- Website (including documentation): https://sailab.diism.unisi.it/gnn/index.html
Install
Install the latest version of NetworkX:
$ pip install gnn
For additional details, please see INSTALL.rst
.
Simple usage example
import GNN
import Net as n
# Provide your own functions to generate input data
inp, arcnode, nodegraph, labels = set_load()
# Create the state transition function, output function, loss function and metrics
net = n.Net(input_dim, state_dim, output_dim)
# Create the graph neural network model
g = GNN.GNN(net, input_dim, output_dim, state_dim)
#Training
for j in range(0, num_epoch):
g.Train(inp, arcnode, labels, count, nodegraph)
# Validate
print(g.Validate(inp_val, arcnode_val, labels_val, count, nodegraph_val))
License
Released under the 3-Clause BSD license (see LICENSE
)
Copyright (C) 2004-2019 Matteo Tiezzi Matteo Tiezzi mtiezzi@diism.unisi.it Alberto Rossi alrossi@unifi.it
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gnn-1.0.2.tar.gz
(7.1 kB
view details)
Built Distribution
gnn-1.0.2-py3-none-any.whl
(8.5 kB
view details)
File details
Details for the file gnn-1.0.2.tar.gz
.
File metadata
- Download URL: gnn-1.0.2.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3966a408a2890428a81449362ffb5a22a24170e7e0e5d0343640a509a65754b1 |
|
MD5 | 0fbe7f7ec6bacbd12fe47b2377eef03b |
|
BLAKE2b-256 | 7d08583acaac069b5297414fc76c72d125feeabd66dc4d34cc415cd7634acf53 |
File details
Details for the file gnn-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: gnn-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c234566403b63e083c785f9647f0adbfde9f5d8696ff975f90860185e848590 |
|
MD5 | c3165ed1df93307d44830848e743e496 |
|
BLAKE2b-256 | 6ed225ee746f520c6432896bcbe7aebb0cc70a3bc2d47daca518b4abfd392866 |