regularizer_orthogonal | R Documentation |
It can be applied to either the rows of a matrix (mode="rows"
) or its
columns (mode="columns"
). When applied to a Dense
kernel of shape
(input_dim, units)
, rows mode will seek to make the feature vectors
(i.e. the basis of the output space) orthogonal to each other.
regularizer_orthogonal(factor = 0.01, mode = "rows")
factor |
Float. The regularization factor. The regularization penalty
will be proportional to |
mode |
String, one of |
A Regularizer
instance that can be passed to layer constructors or
used as a standalone object.
regularizer <- regularizer_orthogonal(factor=0.01) layer <- layer_dense(units=4, kernel_regularizer=regularizer)
Other regularizers:
regularizer_l1()
regularizer_l1_l2()
regularizer_l2()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.