GAN_value_fct: GAN Value Function

View source: R/value-functions.R

GAN_value_fctR Documentation

GAN Value Function

Description

Implements the original GAN value function as a function to be called in gan_trainer. The function can serve as a template to implement new value functions in RGAN.

Usage

GAN_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


mneunhoe/RGAN documentation built on Aug. 27, 2023, 7:57 a.m.