« SVMModel::load
SVMModel::predict_probability »

SVMModel::predict

(PECL svm >= 0.1.0)

SVMModel::predict — Predict a value for previously unseen data

説明

public function 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

参考

関連キーワード:
SVMModel   predict   Predict   regression   load   probability   float   accepts   model   trained   series   pairs   increasing   order   continuous   Float   predicted   label   classification   real   Throws   SVMException
関連する関数・ページ:
svmmodel.predict-probability   class.svmmodel   svmmodel.construct   book.svm   svmmodel.load   svm.train

他のマニュアルの関連ページ