array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'svmmodel.getsvmtype.php', 1 => 'SVMModel::getSvmType', 2 => 'Get the SVM type the model was trained with', ), 'up' => array ( 0 => 'class.svmmodel.php', 1 => 'SVMModel', ), 'prev' => array ( 0 => 'svmmodel.getnrclass.php', 1 => 'SVMModel::getNrClass', ), 'next' => array ( 0 => 'svmmodel.getsvrprobability.php', 1 => 'SVMModel::getSvrProbability', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/svm/svmmodel/getsvmtype.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SVMModel::getSvmType

(PECL svm >= 0.1.5)

SVMModel::getSvmTypeGet the SVM type the model was trained with

说明

public SVMModel::getSvmType(): int

Returns an integer value representing the type of the SVM model used, e.g SVM::C_SVC.

参数

此函数没有参数。

返回值

Return an integer SVM type