|
Algorithm 1 Neuron agglomerative clustering. |
-
1:
For each layer l in the network:
-
2:
Let ;
-
3:
Construct neuron set ;
-
4:
Cluster the neurons in set into groups using agglomerative clustering;
-
5:
Construct a set of cluster centroids ;
-
6:
Agglomerate neurons of the same cluster into its cluster centroid;
-
7:
Remember the agglomerating list ;
-
8:
Calculate , , , where is the indication function;
-
9:
Agglomerate connections of layer into . Bias remains unchanged.
|