pelican.layers.Aggregator2to0
- class pelican.layers.Aggregator2to0(in_channels, out_channels, **kwargs)[source]
Bases:
GeneralAggregatorAggregator from edges (rank 2) to graph (rank 0).
- Parameters:
aggregator (callable) – Aggregation function to use.
in_rank (int) – Input rank (0 for graph, 1 for nodes, 2 for edges).
out_rank (int) – Output rank (0 for graph, 1 for nodes, 2 for edges).
in_channels (int) – Number of input channels.
out_channels (int) – Number of output channels.
map_multipliers (bool) – Whether to use learnable multipliers for each aggregation map, by default True.
factorize (bool) – Whether to use factorized coefficients, by default False. Factorization reduces the number of parameters.
aggr (str) – Aggregation method to use (‘mean’, ‘sum’, ‘prod’, ‘amin’, ‘amax’), by default ‘mean’.