Perform classification on samples in 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). Where
mdenotes the set to be predicted and
nthe 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 predicted class labels for samples in X.
- 예외 발생