Spanish
Idiomas
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



QuantumGenerator.loss

QuantumGenerator.loss(x, weights)[fuente]

Loss function for training the generator’s parameters.

Parámetros
  • x (numpy.ndarray) – sample label (equivalent to discriminator output)

  • weights (numpy.ndarray) – probability for measuring the sample

Devuelve

loss function

Tipo del valor devuelto

float