DiscriminativeNetwork¶
-
class
DiscriminativeNetwork
[source]¶ Bases:
abc.ABC
Base class for discriminative Quantum or Classical Neural Networks.
This method should initialize the module but raise an exception if a required component of the module is not available.
Methods
Apply quantum/classical neural network to the given input sample and compute the respective data label
Loss function used for optimization
Save discriminator model
Set seed.
Perform one training step w.r.t to the discriminator’s parameters