Closed
Description
Hi @yuehhua !
The change of check_num_node
to check_num_nodes
in GraphSignals.jl
breaks the code for evaluating a graph model based on a feature graph.
MWE
using Flux
using GraphSignals
using GeometricFlux
using LinearAlgebra
using LightGraphs.SimpleGraphs
# Initialize variables
num_node = 3
num_features = 2
hidden = 16
# Preprocess data
train_X = Matrix{Float32}(rand(num_features, num_node))
# Create featured graph
adj = [1 1 0;
1 1 1;
0 1 1]
fg = FeaturedGraph(adj)
# Define GCN model
model = Chain(GCNConv(fg, num_features=>hidden, relu),
GCNConv(fg, hidden=>num_features),
)
print(model(train_X))
Error message
Running this code gives the error message:
ERROR: LoadError: UndefVarError: check_num_node not defined
NB that instead of using Graphs.SimpleGraphs
I use using LightGraphs.SimpleGraphs
as there is some compatibility issues, see my reply in #262
Metadata
Metadata
Assignees
Labels
No labels