DiscriminativeNetwork¶
- class DiscriminativeNetwork[source]¶
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
DiscriminativeNetwork.loss
(x, y[, weights])Loss function used for optimization
Set seed.
DiscriminativeNetwork.train
(data, weights[, …])Perform one training step w.r.t to the discriminator’s parameters