You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# g = rand_graph(10, 40, ndata=(; x = randn(Float32, 16,10)), gdata=(; y = randn(Float32)))
31
+
### Model building
29
32
30
-
rng = Random.default_rng()
33
+
We concisely define our model as a [`GNNLux.GNNChain`](@ref) containing two graph convolutional layers and initialize the model's parameters and state.
31
34
35
+
```julia
32
36
model =GNNChain(GCNConv(16=>64),
33
37
x ->relu.(x),
34
38
Dropout(0.6),
@@ -37,14 +41,18 @@ model = GNNChain(GCNConv(16 => 64),
37
41
Dense(64, 1))
38
42
39
43
ps, st = LuxCore.setup(rng, model)
44
+
```
45
+
### Training
46
+
47
+
Finally, we use a standard Lux training pipeline to fit our dataset.
0 commit comments