Vietnamese
Ngôn ngữ
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



SVCLoss.evaluate

SVCLoss.evaluate(parameter_values, quantum_kernel, data, labels)[source]

An abstract method for evaluating the loss of a kernel function on a labeled dataset.

Tham số
  • parameter_values (Sequence[float]) -- an array of values to assign to the user params

  • quantum_kernel (QuantumKernel) -- A QuantumKernel object to evaluate

  • data (ndarray) -- An (N, M) matrix containing the data N = # samples, M = dimension of data

  • labels (ndarray) -- A length-N array containing the truth labels

Kiểu trả về

float

Trả về

A loss value