This is a wrapper for a loss which induces a contraction in the latent space.

contraction(reconstruction_loss = "mean_squared_error", weight = 2e-04)

Arguments

reconstruction_loss

Original reconstruction error to be combined with the contractive loss (e.g. "binary_crossentropy")

weight

Weight assigned to the contractive loss

Value

A loss object which can be converted into a Keras loss

See also