Convert a vector to an activation map
Organize network activation as 2d map.
vectorToActMap(v, nrow = 0, ncol = 0)
the vector containing the activation pattern
number of rows the resulting matrices will have
number of columns the resulting matrices will have
The input to this function is a vector containing in each row an activation
pattern/output of a neural network. This function reorganizes the vector to
a matrix. Normally, only the number of rows
nrow will be used.
a matrix containing the 2d reorganized input