mlx_graphs.utils.scatter.scatter_mean#
- mlx_graphs.utils.scatter.scatter_mean(values: mlx.core.array, index: mlx.core.array, out_size: int, axis: int = 0) mlx.core.array [source]#
Computes the mean of values that are scattered along a specified axis, grouped by index.
- Parameters:
- Return type:
- Returns:
An array containing mean of values grouped by index.