略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SVMModel::predict

2025-03-14

SVMModel::predict

(PECL svm >= 0.1.0)

SVMModel::predictPredict 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

参见

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/svmmodel.predict.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3