SVMModel::getLabels

(PECL svm >= 0.1.5)

SVMModel::getLabelsGet the labels the model was trained on

說明

public SVMModel::getLabels(): array

Return an array of labels that the model was trained on. For regression and one class models an empty array is returned.

參數

此函數沒有參數。

返回值

Return an array of labels

參見