VarAggregation
¶
VarAggregation(semi_grad: bool = False)
Bases: Aggregation
Feature-wise (population) variance of the elements of each set.
\[
\mathrm{var}(\mathcal{X}) = \mathrm{mean}(\{ \mathbf{x}_i^2 :
\mathbf{x}_i \in \mathcal{X} \}) - \mathrm{mean}(\mathcal{X})^2.
\]
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
semi_grad
|
bool
|
If |
False
|
Source code in mlx_graphs/nn/aggr/basic.py
from mlx_graphs.nn.aggr import VarAggregation · mlx_graphs/nn/aggr/basic.py