qiskit.aqua.algorithms.VQC.predict¶
-
VQC.
predict
(data, quantum_instance=None, minibatch_size=- 1, params=None)[source]¶ Predict the labels for the data.
- Parameters
data (numpy.ndarray) – NxD array, N is number of data, D is data dimension
quantum_instance (QuantumInstance) – quantum backend with all setting
minibatch_size (int) – the size of each minibatched accuracy evaluation
params (list) – list of parameters to populate in the variational form
- Returns
for each data point, generates the predicted probability for each class list: for each data point, generates the predicted label (that with the highest prob)
- Return type
list