Spanish
Idiomas
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



PegasosQSVC.predict

PegasosQSVC.predict(X)[fuente]

Perform classification on samples in X.

Parámetros

X (ndarray) – Features. For a callable kernel (an instance of QuantumKernel) the shape should be (m_samples, n_features), for a precomputed kernel the shape should be (m_samples, n_samples). Where m denotes the set to be predicted and n the size of the training set. In that case, the kernel values in X have to be calculated with respect to the elements of the set to be predicted and the training set.

Tipo del valor devuelto

ndarray

Devuelve

An array of the shape (n_samples), the predicted class labels for samples in X.

Muestra
  • QiskitMachineLearningError

    • predict is called before the model has been fit.

  • ValueError

    • Pre-computed kernel matrix has the wrong shape and/or dimension.