July 2019
Intermediate to advanced
512 pages
19h 39m
English
The following is the code to define the sparse regularizer:
def sparse_regularizer(activation_matrix):
Set our
value to 0.05:
rho = 0.05
Calculate the
, which is the mean activation value:
rho_hat = K.mean(activation_matrix)
Compute the KL divergence between the mean
and the mean
according to equation (1):
KL_divergence ...
Read now
Unlock full access