pygan.gansvaluefunction package

Submodules

pygan.gansvaluefunction.mini_max module

class pygan.gansvaluefunction.mini_max.MiniMax[source]

Bases: pygan.gans_value_function.GANsValueFunction

Value function in GANs framework.

compute_discriminator_reward(true_posterior_arr, generated_posterior_arr)[source]

Compute discriminator’s reward.

Parameters:
  • true_posterior_arrnp.ndarray of true posterior inferenced by the discriminator.
  • generated_posterior_arrnp.ndarray of fake posterior inferenced by the discriminator.
Returns:

np.ndarray of Gradients.

compute_generator_reward(generated_posterior_arr)[source]

Compute generator’s reward.

Parameters:generated_posterior_arrnp.ndarray of fake posterior inferenced by the discriminator.
Returns:np.ndarray of Gradients.

Module contents