pyg-team/pytorch_geometric

Weighted aggregations `torch_geometric.nn.aggr.Aggregation`

オープン

#6,867 opened on 2023/03/07

 (10 件のコメント) (0 件のリアクション) (0 人の担当者)Python (3,514 件のフォーク)batch import
1 - Priority P1featurehelp wantednn

Repository metrics

Stars
 (19,985 個のスター)
PR merge metrics
 (平均マージ 35d 1h) (30d で 14 merged PRs)

説明

🚀 The feature, motivation and pitch

The current API of torch_geometric.nn.aggr.Aggregation seems to be unnecessarily limited with respect to edge weights. At least some architectures introduce edge weights, with GCN being the most prominent one. For mean aggregation, it is simple to work around this with a custom message passing / convolution that multiplies features with edge weights. However, for most other weighted aggregations (e.g. median, quantiles, standard deviation, ...) it is not.

Alternatives

Add edge weights to aggregations API

Additional context

No response

コントリビューターガイド