# SVMModel::getLabels

(PECL svm >= 0.1.5)

SVMModel::getLabels — Get the labels the model was trained on

### Descripción

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.

### Parámetros

Esta función no tiene parámetros.

### Valores devueltos

Return an array of labels

### Ver también

- SVMModel::getNrClass() - Returns the number of classes the model was trained with