Skip to content

Commit 3b1ee3c

Browse files
authored
Merge pull request #334 from FluxML/new_features
Replace GraphMLDatasets in favor of MLDatasets and update docs
2 parents 2a4430c + db60d93 commit 3b1ee3c

30 files changed

+534
-298
lines changed

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
1010
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
1111
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
1212
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
13-
GraphMLDatasets = "21828b05-d3b3-40ad-870e-a4bc2f52d5e8"
1413
GraphSignals = "3ebe565e-a4b5-49c6-aed2-300248c3a9c1"
1514
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1615
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
16+
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
1717
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
1818
NNlibCUDA = "a00861dc-f156-4864-bf3c-e6376f28a68d"
1919
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
@@ -26,17 +26,17 @@ Word2Vec = "c64b6f0f-98cd-51d1-af78-58ae84944834"
2626

2727
[compat]
2828
CUDA = "3"
29-
ChainRulesCore = "1.7"
29+
ChainRulesCore = "1"
3030
DataStructures = "0.18"
3131
FillArrays = "0.13"
3232
Flux = "0.12 - 0.13"
33-
GraphMLDatasets = "0.1"
3433
GraphSignals = "0.7"
3534
Graphs = "1"
35+
MLDatasets = "0.7"
3636
NNlib = "0.8"
3737
NNlibCUDA = "0.2"
3838
Optimisers = "0.2"
39-
Reexport = "1.1"
39+
Reexport = "1"
4040
StatsBase = "0.33"
4141
Word2Vec = "0.5"
4242
julia = "1.6"

data/cora_features.jld2

-796 KB
Binary file not shown.

data/cora_graph.jld2

-260 KB
Binary file not shown.

data/cora_label2onehot.jld2

-7.11 KB
Binary file not shown.

data/cora_labels.jld2

-68.9 KB
Binary file not shown.

data/cora_paper2idx.jld2

-47.8 KB
Binary file not shown.

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[deps]
2+
DemoCards = "311a05b2-6137-4a5a-b473-18580a3d38b5"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
45
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
6+
GeometricFlux = "7e08b658-56d3-11e9-2997-919d5b31e4ea"
57

68
[compat]
79
Documenter = "0.27"

docs/bibliography.bib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ @inproceedings{Satorras2021
201201
@article{Dwivedi2021,
202202
abstract = {Graph neural networks (GNNs) have become the standard learning architectures for graphs. GNNs have been applied to numerous domains ranging from quantum chemistry, recommender systems to knowledge graphs and natural language processing. A major issue with arbitrary graphs is the absence of canonical positional information of nodes, which decreases the representation power of GNNs to distinguish e.g. isomorphic nodes and other graph symmetries. An approach to tackle this issue is to introduce Positional Encoding (PE) of nodes, and inject it into the input layer, like in Transformers. Possible graph PE are Laplacian eigenvectors. In this work, we propose to decouple structural and positional representations to make easy for the network to learn these two essential properties. We introduce a novel generic architecture which we call LSPE (Learnable Structural and Positional Encodings). We investigate several sparse and fully-connected (Transformer-like) GNNs, and observe a performance increase for molecular datasets, from 2.87% up to 64.14% when considering learnable PE for both GNN classes.},
203203
author = {Vijay Prakash Dwivedi and Anh Tuan Luu and Thomas Laurent and Yoshua Bengio and Xavier Bresson},
204+
journal = {ArXiv},
204205
month = {10},
205206
title = {Graph Neural Networks with Learnable Structural and Positional Representations},
206207
url = {http://arxiv.org/abs/2110.07875},

docs/make.jl

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
using Documenter
22
using DocumenterCitations
3+
using DemoCards
34
using GeometricFlux
45

6+
const ASSETS = ["assets/flux.css", "assets/favicon.ico"]
7+
58
bib = CitationBibliography(joinpath(@__DIR__, "bibliography.bib"), sorting=:nyt)
69

710
DocMeta.setdocmeta!(GeometricFlux, :DocTestSetup, :(using GeometricFlux, Flux); recursive=true)
811

12+
# DemoCards
13+
demopage, postprocess_cb, demo_assets = makedemos("tutorials")
14+
isnothing(demo_assets) || (push!(ASSETS, demo_assets))
15+
916
makedocs(
1017
bib,
1118
sitename = "GeometricFlux.jl",
1219
format = Documenter.HTML(
13-
assets = ["assets/flux.css", "assets/favicon.ico"],
20+
assets = ASSETS,
1421
canonical = "https://fluxml.ai/GeometricFlux.jl/stable/",
1522
analytics = "G-M61P0B2Y8E",
23+
edit_link = "master",
1624
),
1725
clean = false,
1826
modules = [GeometricFlux,GraphSignals],
1927
pages = ["Home" => "index.md",
20-
"Tutorials" => [
21-
"Semi-Supervised Learning with GCN" => "tutorials/semisupervised_gcn.md",
22-
"GCN with Fixed Graph" => "tutorials/gcn_fixed_graph.md",
23-
"Graph Attention Network" => "tutorials/gat.md",
24-
"DeepSet for Digit Sum" => "tutorials/deepset.md",
25-
"Variational Graph Autoencoder" => "tutorials/vgae.md",
26-
"Graph Embedding" => "tutorials/graph_embedding.md",
27-
],
28+
demopage,
2829
"Introduction" => "introduction.md",
2930
"Basics" => [
3031
"Graph Convolutions" => "basics/conv.md",
@@ -55,6 +56,9 @@ makedocs(
5556
]
5657
)
5758

59+
# callbacks of DemoCards
60+
postprocess_cb()
61+
5862
deploydocs(
5963
repo = "github.com/FluxML/GeometricFlux.jl.git",
6064
target = "build",

docs/src/tutorials/graph_embedding.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)