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



QuantumGenerator.loss

QuantumGenerator.loss(x, weights)[sorgente]

Loss function for training the generator’s parameters.

Parametri:
  • x (numpy.ndarray) – sample label (equivalent to discriminator output)

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

Ritorna:

loss function

Tipo di ritorno:

float