Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<SVM::trainSVMModel::checkProbabilityModel>
^SVMLast updated: Mon, 26 Oct 2026

The SVMModel class

(PECL svm >= 0.1.0)

Introduction

The SVMModel is the end result of the training process. It can be used to classify previously unseen data.

Class synopsis

class SVMModel {
/* Methods */
public function __construct(string $filename = ?)
public function checkProbabilityModel(): bool
public function getLabels(): array
public function getNrClass(): int
public function getSvmType(): int
public function getSvrProbability(): float
public function load(string $filename): bool
public function predict(array $data): float
public function predict_probability(array $data): float
public function save(string $filename): bool
}

Table of Contents


<SVM::trainSVMModel::checkProbabilityModel>
^SVMLast updated: Mon, 26 Oct 2026