Last active
May 17, 2021 20:48
-
-
Save sidneyarcidiacono/d42458857493369a171c3efd85e9be56 to your computer and use it in GitHub Desktop.
Import layers for Spektral GCN model;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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