GraphConv(in_channels, out_channels, aggr='mean', bias=True, **kwargs)
Bases: MessagePassing
Basic graph convolution layer with center node handling.
| Parameters: |
|
|---|
Notes
Performs message passing with:
- Linear transformation of source nodes
- Separate transformation for center nodes
- Message aggregation
forward(x, edge_index, x_cen)
Forward pass of the layer.
| Parameters: |
|
|---|
| Returns: |
|
|---|
MixUpGCNConv(in_channels, out_channels, improved=False, cached=False, add_self_loops=False, normalize=True, bias=True, **kwargs)
Bases: MessagePassing
Graph convolutional operator with mixup capabilities.
| Parameters: |
|
|---|
forward(x, x_cen, edge_index, edge_weight=None, lmda=1)
Forward pass with mixup interpolation.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Notes
- Graph normalization (if enabled)
- Linear transformation
- Message passing with mixup
- Center node transformation
- Optional bias addition
message(x_j, edge_weight, lmda, edge_rw)
Define message computation.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Notes
Interpolates between normalized and reweighted messages: message = (1-lambda) * normalized + lambda * reweighted