regularizer_orthogonal {keras} | R Documentation |
A regularizer that encourages input vectors to be orthogonal to each other
Description
A regularizer that encourages input vectors to be orthogonal to each other
Usage
regularizer_orthogonal(factor = 0.01, mode = "rows", ...)
Arguments
factor |
Float. The regularization factor. The regularization penalty will
be proportional to |
mode |
String, one of |
... |
For backwards and forwards compatibility layer <- layer_dense( units = 4, kernel_regularizer = regularizer_orthogonal(factor = 0.01)) |
Details
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.