qiskit.aqua.algorithms.QSVM.train¶
-
QSVM.
train
(data, labels, quantum_instance=None)[source]¶ Train the svm.
- Parameters
data (numpy.ndarray) – NxD array, where N is the number of data, D is the feature dimension.
labels (numpy.ndarray) – Nx1 array, where N is the number of data
quantum_instance (QuantumInstance) – quantum backend with all setting
- Raises
AquaError – Quantum instance is not present.