NumPyDiscriminator¶
-
class
NumPyDiscriminator
(n_features=1, n_out=1)[source]¶ Bases:
qiskit.aqua.components.neural_networks.discriminative_network.DiscriminativeNetwork
Discriminator based on NumPy
- Parameters
n_features (
int
) – Dimension of input data vector.n_out (
int
) – Dimension of the discriminator’s output vector.
Methods
Get data sample labels, i.e. true or fake.
Load discriminator model
Loss function :param x: sample label (equivalent to discriminator output) :type x: numpy.ndarray :param y: target label :type y: numpy.ndarray :param weights: customized scaling for each sample (optional) :type weights: numpy.ndarray
Save discriminator model
Set seed.
Perform one training step w.r.t to the discriminator’s parameters
Attributes
-
discriminator_net
¶ Get discriminator
- Returns
discriminator object
- Return type
DiscriminatorNet