Vietnamese
Ngôn ngữ
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



QuantumGenerator.loss

QuantumGenerator.loss(x, weights)[source]

Loss function for training the generator's parameters.

Tham số
  • x (numpy.ndarray) -- sample label (equivalent to discriminator output)

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

Trả về

loss function

Kiểu trả về

float