You are here: Start » AVL.NET » AVL.SVM_Classify(AvlNet.SvmModel, float[][], int[], int[], float[][])

AVL.SVM_Classify(AvlNet.SvmModel, float[][], int[], int[], float[][])

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void SVM_Classify(
	AvlNet.SvmModel inTrainedSvmModel,
	float[][] inVectorArray,
	out int[] outPredictions,
	out int[] outModelClasses,
	out float[][] outClassProbabilities
)

Parameters

inTrainedSvmModel
Type: AvlNet.SvmModel
inVectorArray
Type: System.Single
outPredictions
Type: System.Int32
outModelClasses
Type: System.Int32
outClassProbabilities
Type: System.Single

Description

The operation predicts classes for the given data points. It takes an array of data vectors (inVectorArray) as an argument. Each vector has to be of the same size as vectors used for training the model. The operation outputs predicted class (outPredictions) for each data vector.
outModelClasses are all class labels encountered during training.
outClassProbabilities provides, for each vector, estimated probability of this vector belonging to each class. Precisely, in each array 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_Classify.
DomainError empty vector array in SVM_Classify.
DomainError Incorrect vector size in SVM_Classify

See also