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

DiscriminativeNetwork.get_label(x)

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

DiscriminativeNetwork.set_seed(seed)

Set seed.

DiscriminativeNetwork.train(data, weights[, …])

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