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.
- Parameters:
parameter_values (
Sequence
[float
]) – an array of values to assign to the user paramsquantum_kernel (
TrainableKernel
) – AQuantumKernel
object to evaluatedata (
ndarray
) – An(N, M)
matrix containing the dataN = # samples, M = dimension of data
labels (
ndarray
) – A length-N array containing the truth labels
- Return type:
- Returns:
A loss value