classify_class_svm๐
Short description๐
classify_class_svm โ Classify a feature vector by a support vector machine.
Signature๐
classify_class_svm( class_svm SVMHandle, real Features, integer Num, out integer Class )
Description๐
classify_class_svm computes the best Num classes of
the feature vector Features with the SVM SVMHandle
and returns them in Class. If the classifier was
created in the Mode \(=\) 'one-versus-one', the
classes are ordered by the number of votes of the sub-classifiers. If
Mode \(=\) 'one-versus-all' was used, the classes are ordered
by the value of each sub-classifier (see create_class_svm for more
details). If the classifier was created in the Mode \(=\)
'novelty-detection', it determines whether the feature vector
belongs to the same class as the training data (\(\textrm{Class} = 1\)) or is
regarded as outlier (\(\textrm{Class} = 0\)). In this case Num must be
set to \(1\) as the classifier only determines membership.
Before calling classify_class_svm, the SVM must be trained
with train_class_svm.
Execution information๐
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters๐
SVMHandle (input_control) class_svm โ (handle)
SVM handle.
Features (input_control) real-array โ (real)
Feature vector.
Num (input_control) integer-array โ (integer)
Number of best classes to determine.
Default: 1
Suggested values: 1, 2, 3, 4, 5
Class (output_control) integer(-array) โ (integer)
Result of classifying the feature vector with the SVM.
Result๐
If the parameters are valid the operator classify_class_svm
returns the value 2 (H_MSG_TRUE). If necessary, an exception is
raised.
Combinations with other operators๐
References๐
John Shawe-Taylor, Nello Cristianini: ``Kernel Methods for Pattern Analysisโโ; Cambridge University Press, Cambridge; 2004.
Bernhard Schรถlkopf, Alexander J.Smola: โLearning with Kernelsโ; MIT Press, London; 1999.
Module๐
Foundation