SVMModel::predict_probability
(PECL svm >= 0.1.4)
SVMModel::predict_probability — Return class probabilities for previous unseen data
Описание
public float SVMModel::predict_probability
( 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.
-
probabilities
-
The supplied value will be filled with the probabilities. This will be either null, in the case
of a model without probability information, or an array where the index is the class name and the value
the predicted probability.
Возвращаемые значения
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