QSVM.predict

QSVM.predict(data, quantum_instance=None)[source]

Predict using the svm.

Parameters
  • data (numpy.ndarray) – NxD array, where N is the number of data, D is the feature dimension.

  • quantum_instance (QuantumInstance) – quantum backend with all setting

Returns

predicted labels, Nx1 array

Return type

numpy.ndarray

Raises

AquaError – Quantum instance is not present.