SVMModel::predict
(PECL svm >= 0.1.0)
SVMModel::predict — Predict a value for previously unseen data
Описание
public float SVMModel::predict
( array
$data
)This function accepts an array of data and attempts to predict the class or regression value based on the model extracted from previously trained 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
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Другие службы
- Support Vector Machine
- Функция SVMModel::checkProbabilityModel() - Returns true if the model has probability information
- Функция SVMModel::__construct() - Construct a new SVMModel
- Функция SVMModel::getLabels() - Get the labels the model was trained on
- Функция SVMModel::getNrClass() - Returns the number of classes the model was trained with
- Функция SVMModel::getSvmType() - Get the SVM type the model was trained with
- Функция SVMModel::getSvrProbability() - Get the sigma value for regression types
- Функция SVMModel::load() - Load a saved SVM Model
- Функция SVMModel::predict_probability() - Return class probabilities for previous unseen data
- Функция SVMModel::predict() - Predict a value for previously unseen data
- Функция SVMModel::save() - Save a model to a file
Коментарии
404 Not Found