You are here: Start » FIL.NET » Function Reference » Data Classification » Support Vector Machines » FIL.SVM_ClassifySingle
Classifies input features based on a trained model.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void SVM_ClassifySingle ( FilNet.SvmModel inSvmModel, IList<float> inVector, out int outPrediction )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inSvmModel | FilNet.SvmModel | Input trained model. | ||
![]() | inVector | System.Collections.Generic.IList<float> | Data vector of unknown class. | ||
![]() | outPrediction | int | Predicted classes. |
Description
The operation predicts classes for the given data points. It takes a data vector (inVector) as
an argument. The vector has to be of the same size as vectors used for training the model.
The operation outputs predicted class (outPrediction) for the data vector.
outModelClasses are all class labels encountered during training.
outClassProbabilities provides, for the input vector, estimated probability belonging to each class.
Precisely, the value under index i denotes probability of given vector belonging to the class outModelClasses[i].
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Incorrect vector size in SVM_ClassifySingle |
DomainError | Incorrect, uninitialized or not trained SvmModel in SVM_ClassifySingle. |