ഭാഷകൾ
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese



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

Loss

Abstract base class for computing Loss.

KernelLoss

Abstract base class for computing the loss of a kernel function.

Loss Functions

L1Loss

This class computes the L1 loss (i.e.

L2Loss

This class computes the L2 loss (i.e.

CrossEntropyLoss

This class computes the cross entropy loss for each sample as:

CrossEntropySigmoidLoss

This class computes the cross entropy sigmoid loss and should be used for binary classification.

SVCLoss

This class provides a kernel loss function for classification tasks by fitting an SVC model from scikit-learn.