Repository navigation
Learnable epsilon in GIN - #697
Merged
CarloLucibello merged 7 commits intoNov 29, 2026
Merged
Conversation
Member
|
needs a rebase |
aurorarossi
force-pushed
the
learnable-epsilon-gin
branch
2 times, most recently
from
September 30, 2026 13:09
f0c8676 to
1d99de0
Compare
- GNNLux: keep ϵ a scalar in the layer and create a fresh `Float32[ϵ]` in `initialparameters`, so parameters don't alias the layer struct. - Document both positional and keyword ϵ; define `x` in the Flux example. - Test trainable-ϵ gradients against finite differences, and the forward pass against (1 + ϵ) xᵢ + ∑ⱼ xⱼ in both frontends. - Bump GraphNeuralNetworks to 1.2.0-DEV; require GNNlib 1.5 in the frontends (array ϵ in `gin_conv`). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
CarloLucibello
force-pushed
the
learnable-epsilon-gin
branch
from
November 29, 2026 08:09
1b51c53 to
ebf7253
Compare
CarloLucibello
added a commit
to i-Amogh/GraphNeuralNetworks.jl
that referenced
this pull request
Nov 29, 2026
The Flux NNConv falls back to `edge_features(::GNNHeteroGraph)`, new in GNNGraphs 1.7. (The GraphNeuralNetworks 1.2.0-DEV bump and the GNNlib 1.5 compat in both frontends already came with JuliaGraphs#697.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CarloLucibello
added a commit
to i-Amogh/GraphNeuralNetworks.jl
that referenced
this pull request
Nov 29, 2026
The Flux NNConv falls back to `edge_features(::GNNHeteroGraph)`, new in GNNGraphs 1.7. (The GraphNeuralNetworks 1.2.0-DEV bump and the GNNlib 1.5 compat in both frontends already came with JuliaGraphs#697.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CarloLucibello
added a commit
to i-Amogh/GraphNeuralNetworks.jl
that referenced
this pull request
Nov 29, 2026
The Flux NNConv falls back to `edge_features(::GNNHeteroGraph)`, new in GNNGraphs 1.7. (The GraphNeuralNetworks 1.2.0-DEV bump and the GNNlib 1.5 compat in both frontends already came with JuliaGraphs#697.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CarloLucibello
added a commit
that referenced
this pull request
Nov 29, 2026
* Adding NNConv support for HeteroGraphConv * Refactoring * Aligning with changes in GMMConv * Make edge_features(::GNNHeteroGraph) throw on ambiguous input and test it `@error` only logs and returns `nothing`; throw an `ArgumentError` instead when the graph has several edge types or several edge feature arrays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * NNConv: clear error without edge features, document bipartite input, test values - `(l::NNConv)(g, x, e = edge_features(g))` throws an `ArgumentError` when no edge features are given nor stored in `g`. - Document the `(xj, xi)` tuple input and the default `e` in the NNConv docstring, and how HeteroGraphConv layers get their edge features. - Check the hetero NNConv output and its Zygote gradients against the homogeneous NNConv on graphs whose nodes are the union of src and dst nodes (also in GNNLux, for the tuple input), instead of only sizes. - Revert a stray whitespace change in the GCNConv hetero test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Require GNNGraphs 1.7, mark NNConv as heterograph-capable in docs The Flux NNConv falls back to `edge_features(::GNNHeteroGraph)`, new in GNNGraphs 1.7. (The GraphNeuralNetworks 1.2.0-DEV bump and the GNNlib 1.5 compat in both frontends already came with #697.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Amogh <defalt@Amoghs-MacBook-Air.local> Co-authored-by: CarloLucibello <carlo.lucibello@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds PyTorch Geometric-style
ϵandtrain_epsoptions toGINConvfor both Flux and Lux.