WGAN_value_fct: WGAN Value Function

View source: R/value-functions.R

WGAN_value_fctR Documentation

WGAN Value Function

Description

Implements the Wasserstein GAN (WGAN) value function as a function to be called in gan_trainer. Note that for this to work properly you also need to implement a weight clipper (or other procedure) to constrain the Discriminator weights.

Usage

WGAN_value_fct(real_scores, fake_scores)

Arguments

real_scores

The discriminator scores on real examples ($D(x)$)

fake_scores

The discriminator scores on fake examples ($D(G(z))$)

Value

The function returns a named list with the entries d_loss and g_loss


RGAN documentation built on March 30, 2022, 1:07 a.m.