php8.5
Home/ Manual/ svm / svmmodel/ SVMModel::__construct

SVMModel::__construct

PHP function Edit on GitHub ✎

(PECL svm >= 0.1.0)

Construct a new SVMModel

Description

SVMModel::__construct([string $filename])

Build a new SVMModel. Models will usually be created from the SVM::train function, but then saved models may be restored directly.

Parameters

filename

The filename for the saved model file this model should load.

Errors/Exceptions

Throws a SVMException on error

See Also

  • SVMModel::load

Source: reference/svm/svmmodel/construct.xml · from the official PHP manual (php/doc-en)