PegasosQSVC.decision_function¶
- PegasosQSVC.decision_function(X)[ソース]¶
Evaluate the decision function for the samples in X.
- パラメータ:
X (ndarray) – Features. For a callable kernel (an instance of
BaseKernel
) the shape should be(m_samples, n_features)
, for a precomputed kernel the shape should be(m_samples, n_samples)
. Wherem
denotes the set to be predicted andn
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.- 戻り値:
An array of the shape (n_samples), the decision function of the sample.
- 例外:
the method is called before the model has been fit.
Pre-computed kernel matrix has the wrong shape and/or dimension.
- 戻り値の型: