NumPyDiscriminator.loss

NumPyDiscriminator.loss(x, y, weights=None)[source]

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

Returns

loss function

Return type

float