Skip to main content
[Preprint]. 2023 Dec 28:2023.10.11.561797. Originally published 2023 Oct 16. [Version 3] doi: 10.1101/2023.10.11.561797
Input: H (matrix of neuronal weights), nodes (array detailing which neurons belong to each node)
Output: aggregated_weight_matrix
1: aggregated_weight_matrix = zeros(num_nodes, num_components)
2: for i in range(num_nodes)
3:  for j in range(num_compnents)
4:   aggregated_weight_matrix [ i, j ] = sum(H [nodes[ i ] , j )