Skip to content

Instantly share code, notes, and snippets.

@sidneyarcidiacono
Last active May 17, 2021 20:48
Show Gist options
  • Save sidneyarcidiacono/d42458857493369a171c3efd85e9be56 to your computer and use it in GitHub Desktop.
Save sidneyarcidiacono/d42458857493369a171c3efd85e9be56 to your computer and use it in GitHub Desktop.
Import layers for Spektral GCN model;
# Spektral is built on top of Keras, so we can use the Keras functional API to build a model that first embeds,
# then sums the nodes together (global pooling), then classifies the result with a dense softmax layer
# First, let's import the necessary layers:
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Dense, Dropout
from spektral.layers import GCNConv, GlobalSumPool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment