You are here: Start » AVL.NET » AVL.SVM_ClassifySingle Method

AVL.SVM_ClassifySingle Method

Classifies input features based on a trained model

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void SVM_ClassifySingle(
	AvlNet.SvmModel inSvmModel,
	float[] inVector,
	out int outPrediction,
	out int[] outModelClasses,
	out float[] outClassProbabilities
)

Parameters

Name Type Range Default Description
inSvmModelAvlNet.SvmModelInput trained model.
inVectorfloatData vector of unknown class.
outPredictionintPredicted classes.
outModelClassesintAll known model classes in order
outClassProbabilitiesfloatFor 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

Error type Description
DomainError Incorrect, uninitialized or not trained SvmModel in SVM_ClassifySingle.
DomainError Incorrect vector size in SVM_ClassifySingle

See also