You are here: Start » Filter Reference » Data Classification » Support Vector Machines » SVM_ClassifySingle
Module: | FoundationPro |
---|
Classifies input features based on a trained model.
Name | Type | Description | |
---|---|---|---|
inSvmModel | SvmModel | Input trained model | |
inVector | RealArray | Data vector of unknown class | |
outPrediction | Integer | Predicted classes | |
outModelClasses | IntegerArray | All known model classes in order | |
outClassProbabilities | RealArray | For each data vector the probability of belonging to each class |
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
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Incorrect vector size in SVM_ClassifySingle |
DomainError | Incorrect, uninitialized or not trained SvmModel in SVM_ClassifySingle. |
Complexity Level
This filter is available on Expert Complexity Level.
Filter Group
This filter is member of SVM_Classify filter group.
See Also
- SVM_Init – Initializes an SVM model.
- SVM_Train – Trains an SVM model.
- SVM_ClassifyMultiple – Classifies input points based on trained model.