DiscriminatorMinMax¶
Inheritance Diagram

-
class
ashpy.losses.gan.DiscriminatorMinMax(from_logits=True, label_smoothing=0.0)[source]¶ Bases:
ashpy.losses.gan.DiscriminatorAdversarialLossThe min-max game played by the discriminator.
\[L_{D} = - \frac{1}{2} E [\log(D(x)) + \log (1 - D(G(z))]\]Methods
__init__([from_logits, label_smoothing])Initialize Loss. Attributes
fnReturn the Keras loss function to execute. global_batch_sizeGlobal batch size comprises the batch size for each cpu. weightReturn the loss weight.