keras-gcn - PyPI
pypi.org › project › keras-gcnJan 22, 2022 · from tensorflow import keras from keras_gcn import GraphConv DATA_DIM = 3 data_layer = keras.layers.Input(shape=(None, DATA_DIM)) edge_layer = keras.layers.Input(shape=(None, None)) conv_layer = GraphConv( units=32, step_num=1, ) ( [data_layer, edge_layer]) step_num is the maximum distance of two nodes that could be considered as neighbors.
Getting started - Spektral
https://graphneural.network/getting-startedGetting started. Spektral is designed according to the guiding principles of Keras to make things extremely simple for beginners while maintaining flexibility for experts. In this tutorial, we will go over the main features of Spektral while creating a graph neural network for graph classification.
keras-gcn - PyPI
https://pypi.org/project/keras-gcn22.01.2022 · Keras Graph Convolutional Network. Graph convolutional layers. Install pip install keras-gcn Usage GraphConv. from tensorflow import keras from keras_gcn import GraphConv DATA_DIM = 3 data_layer = keras. layers. Input (shape = (None, DATA_DIM)) edge_layer = keras. layers. Input (shape = (None, None)) conv_layer = GraphConv (units = 32, step_num = …
Convolutional layers - Spektral
https://graphneural.network/layers/convolutionA GraphConv layer with a trainable skip connection. Mode: single, disjoint, mixed, batch. This layer computes: where does not have self-loops. Input. Node features of shape ([batch], n_nodes, n_node_features); Normalized adjacency matrix of shape ([batch], n_nodes, n_nodes); can be computed with spektral.utils.convolution.normalized_adjacency ...