-
Notifications
You must be signed in to change notification settings - Fork 56
GNNLux docs start and general docs improvement #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 15 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
1400ba6
Update and fix README
aurorarossi 5f5db8a
Add installation GNNGraphs
aurorarossi e0a36ff
Fix GNNGraphs
aurorarossi 70217ec
Better monorepo index
aurorarossi 77dde45
Fix link
aurorarossi 53830c1
Better intro GNN
aurorarossi 6270811
No need of Graphs
aurorarossi 5e519e9
Fixes and ok GNNlib
aurorarossi bdf0ad1
Add basic docs
aurorarossi ebd7929
MISSING ones_like
aurorarossi ae58c08
Docs GCNConv
aurorarossi 94c13c3
Fix
aurorarossi 87f57c2
Fix Module
aurorarossi 5e433a6
Add interlinks for GNNLux
aurorarossi bbe85ab
Add package Interlinks
aurorarossi 1732ca9
Remove seed
aurorarossi 9c78897
Remove seed
aurorarossi 7a6c6e4
Add rng
aurorarossi 4792cd1
Remove space
aurorarossi fee17fd
Remove line
aurorarossi 48c5f7a
Add rng to randn
aurorarossi f6d6471
Add space
aurorarossi 3c4b890
Fix
aurorarossi 27750f9
Add rng to rang_graph
aurorarossi 3e31bfc
Spaces
aurorarossi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| [deps] | ||
| Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
| DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656" | ||
| GNNLux = "e8545f4d-a905-48ac-a8c4-ca114b98986d" | ||
| GNNlib = "a6a84749-d869-43f8-aacc-be26a1996e48" | ||
| LiveServer = "16fef848-5104-11e9-1b77-fb7a48bbb589" |
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,5 +4,6 @@ CurrentModule = GNNLux | |
|
|
||
| ## GNNLayer | ||
| ```@docs | ||
| GNNLux.GNNLayer | ||
| GNNLayer | ||
| GNNChain | ||
| ``` | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| ```@meta | ||
| CurrentModule = GNNLux | ||
| ``` | ||
|
|
||
| # Convolutional Layers | ||
|
|
||
| Many different types of graphs convolutional layers have been proposed in the literature. Choosing the right layer for your application could involve a lot of exploration. | ||
| Multiple graph convolutional layers are typically stacked together to create a graph neural network model (see [`GNNChain`](@ref)). | ||
|
|
||
| The table below lists all graph convolutional layers implemented in the *GNNLux.jl*. It also highlights the presence of some additional capabilities with respect to basic message passing: | ||
| - *Sparse Ops*: implements message passing as multiplication by sparse adjacency matrix instead of the gather/scatter mechanism. This can lead to better CPU performances but it is not supported on GPU yet. | ||
| - *Edge Weight*: supports scalar weights (or equivalently scalar features) on edges. | ||
| - *Edge Features*: supports feature vectors on edges. | ||
| - *Heterograph*: supports heterogeneous graphs (see [`GNNHeteroGraph`](@ref)). | ||
| - *TemporalSnapshotsGNNGraphs*: supports temporal graphs (see [`TemporalSnapshotsGNNGraph`](@ref)) by applying the convolution layers to each snapshot independently. | ||
|
|
||
| | Layer |Sparse Ops|Edge Weight|Edge Features| Heterograph | TemporalSnapshotsGNNGraphs | | ||
| | :-------- | :---: |:---: |:---: | :---: | :---: | ✓ | | ||
| | [`GCNConv`](@ref) | ✓ | ✓ | | ✓ | | | ||
|
|
||
| ## Docs | ||
|
|
||
| ```@autodocs | ||
| Modules = [GNNLux] | ||
| Pages = ["layers/conv.jl"] | ||
| Private = false | ||
| ``` |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,15 @@ | ||
| # GNNlib.jl | ||
|
|
||
| GNNlib.jl is a package that provides the implementation of the basic message passing functions and | ||
| functional implementation of graph convolutional layers, which are used to build graph neural networks in both the Flux.jl and Lux.jl machine learning frameworks, created in the GraphNeuralNetworks.jl and GNNLux.jl packages, respectively. | ||
| functional implementation of graph convolutional layers, which are used to build graph neural networks in both the [Flux.jl](https://fluxml.ai/Flux.jl/stable/) and [Lux.jl](https://lux.csail.mit.edu/stable/) machine learning frameworks, created in the GraphNeuralNetworks.jl and GNNLux.jl packages, respectively. | ||
|
|
||
| This package depends on GNNGraphs.jl and NNlib.jl, and is primarily intended for developers looking to create new GNN architectures. For most users, the higher-level GraphNeuralNetworks.jl and GNNLux.jl packages are recommended. | ||
| This package depends on GNNGraphs.jl and NNlib.jl, and is primarily intended for developers looking to create new GNN architectures. For most users, the higher-level GraphNeuralNetworks.jl and GNNLux.jl packages are recommended. | ||
|
|
||
| ## Installation | ||
|
|
||
| The package can be installed with the Julia package manager. | ||
| From the Julia REPL, type `]` to enter the Pkg REPL mode and run: | ||
|
|
||
| ```julia | ||
| pkg> add GNNlib | ||
| ``` |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.