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



PyTorchDiscriminator.train

PyTorchDiscriminator.train(data, weights, penalty=False, quantum_instance=None, shots=None)[소스]

Perform one training step w.r.t to the discriminator’s parameters

매개변수
  • data (Iterable) – Data batch.

  • weights (Iterable) – Data sample weights.

  • penalty (bool) – Indicate whether or not penalty function is applied to the loss function. Ignored if no penalty function defined.

  • quantum_instance (QuantumInstance) – used to run Quantum network. Ignored for a classical network.

  • shots (Optional[int]) – Number of shots for hardware or qasm execution. Ignored for classical network

반환

with discriminator loss and updated parameters.data, weights, penalty=True,

quantum_instance=None, shots=None) -> Dict[str, Any]:

반환 형식

dict