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

contraction(rec_err, weight)

Arguments

rec_err Original reconstruction error to be combined with the contractive loss Weight assigned to the contractive loss

Value

A loss object which can be converted into a Keras loss