SVMException

The SVMException exception is thrown by the SVM::train() method. It happens when the model could not be trained.

<?php
$svm = new SVM();
try {
     $model = $svm->train($data);
} catch (SVMException $e) {
     print $e->getMessage();
}

?>

Documentation

See also Machine Learning with PHP: using Support Vector Machine (SVM) via ext-svm

Related : Exception, Support Vector Machine