SVMModel::predict_probability
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
SVMModel::predict_probability
Референца за `svmmodel.predict-probability.php` со подобрена типографија и навигација.
SVMModel::predict_probability
(PECL svm >= 0.1.4)
SVMModel::predict_probability — Return class probabilities for previous unseen data
= NULL
This function accepts an array of data and attempts to predict the class, as with the predict function. Additionally, however, this function returns an array of probabilities, one per class in the model, which represent the estimated chance of the data supplied being a member of that class. Requires that the model to be used has been trained with the probability parameter set to true.
Параметри
data- Низата што треба да се класифицира. Ова треба да биде серија од парови клуч => вредност во растечки редослед на клучеви, но не нужно континуирани.
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.
Вратени вредности
Плови предвидената вредност. Ова ќе биде етикета на класа во случај на класификација, реална вредност во случај на регресија. Фрла SVMException при грешка
Види Исто така
- SVM::predict()