Korean
언어
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese



SVCLoss.evaluate

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

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

매개변수
  • parameter_values (Sequence[float]) – an array of values to assign to the user params

  • quantum_kernel (TrainableKernel) – 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

반환 형식

float

반환

A loss value