Loss Functions (qiskit_machine_learning.utils.loss_functions
)#
A collection of common loss functions to be used with the classifiers and regressors provided by Qiskit Machine Learning.
Loss Function Base Class#
Abstract base class for computing Loss. |
|
Abstract base class for computing the loss of a kernel function. |
Loss Functions#
This class computes the L1 loss (i.e. |
|
This class computes the L2 loss (i.e. |
|
This class computes the cross entropy loss for each sample as: |
|
This class provides a kernel loss function for classification tasks by fitting an |