(PECL svm >= 0.1.0)
SVMModel::predict — Predict a value for previously unseen data
public SVMModel::predict ( array $data ) : float
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
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/svmmodel.predict.php