|
1 | 1 | # GraphNeuralNetworks.jl
|
2 | 2 |
|
3 |
| -[](https://fluxml.ai/GraphNeuralNetworks.jl/stable) |
4 |
| -[](https://fluxml.ai/GraphNeuralNetworks.jl/dev) |
| 3 | +[](https://CarloLucibello.github.io/GraphNeuralNetworks.jl/stable) |
| 4 | +[](https://CarloLucibello.github.io/GraphNeuralNetworks.jl/dev) |
5 | 5 | 
|
6 | 6 | [](https://codecov.io/gh/CarloLucibello/GraphNeuralNetworks.jl)
|
7 | 7 |
|
8 |
| -GraphNeuralNetworks (GNN) is a graph neural network library for Julia based on the [Flux.jl](https://github.com/FluxML/Flux.jl) deep learning framework. |
| 8 | +*GraphNeuralNetworks* is a graph neural network library for Julia based on the [Flux.jl](https://github.com/FluxML/Flux.jl) deep learning framework. |
9 | 9 |
|
10 |
| - |
11 |
| -## Installation |
12 |
| - |
13 |
| -```julia |
14 |
| -]add GraphNeuralNetworks |
15 |
| -``` |
16 |
| - |
17 |
| -## Features |
| 10 | +Some of its noticeable features are the following: |
18 | 11 |
|
19 | 12 | * Based on the Flux deep learning framework.
|
20 | 13 | * CUDA support.
|
21 | 14 | * Integrated with the JuliaGraphs ecosystem.
|
22 | 15 | * Supports generic graph neural network architectures.
|
23 | 16 | * Easy to define custom graph convolutional layers.
|
24 | 17 |
|
| 18 | +## Installation |
| 19 | + |
| 20 | +```julia |
| 21 | +]add GraphNeuralNetworks |
| 22 | +``` |
| 23 | + |
25 | 24 | ## Featured Graphs
|
26 | 25 |
|
27 | 26 | GraphNeuralNetworks handles graph data (the graph topology + node/edge/global features)
|
@@ -49,16 +48,16 @@ struct GNN
|
49 | 48 | conv1
|
50 | 49 | conv2
|
51 | 50 | dense
|
52 |
| - |
53 |
| - function GNN() |
54 |
| - new(GCNConv(1024=>512, relu), |
55 |
| - GCNConv(512=>128, relu), |
56 |
| - Dense(128, 10)) |
57 |
| - end |
58 | 51 | end
|
59 | 52 |
|
60 | 53 | @functor GNN
|
61 | 54 |
|
| 55 | +function GNN() |
| 56 | + GNN(GCNConv(1024=>512, relu), |
| 57 | + GCNConv(512=>128, relu), |
| 58 | + Dense(128, 10)) |
| 59 | +end |
| 60 | + |
62 | 61 | function (net::GNN)(g, x)
|
63 | 62 | x = net.conv1(g, x)
|
64 | 63 | x = dropout(x, 0.5)
|
|
0 commit comments