SVMModel::predict
(PECL svm >= 0.1.0)
SVMModel::predict — Predict a value for previously unseen data
Описание
public float SVMModel::predict
( array $data
)
Список параметров
-
data
-
The array to be classified. This should be a series of key => value
pairs in increasing key order, but not necessarily continuous.
Возвращаемые значения
Float the predicted value. This will be a class label in the case of
classification, a real value in the case of regression.
Throws SVMException on error