Leaper Vision Toolkit
中文 / English 2.x
Properties
ILModel Interface Reference

This interface provide functionalities of the machine learning model. More...

Inheritance diagram for ILModel:
ILParameterized ILObject LModel

Properties

LPVModelType Type [get, set]
 The type of the model. Changing the type will reset the model to default.
 
- Properties inherited from ILParameterized
BOOL ParamBool (LString paramName) [get, set]
 The boolean parameter.
 
double ParamF (LString paramName) [get, set]
 The floating double parameter.
 
int ParamI (LString paramName) [get, set]
 The integer parameter.
 
LSize ParamSize (LString paramName) [get, set]
 The size parameter.
 

Additional Inherited Members

- Public Member Functions inherited from ILObject
ILObjectCopy ()
 
LPVErrorCode Load (LString filename)
 
void Reset ()
 
LPVErrorCode Save (LString filename)
 
BOOL Valid ()
 

Detailed Description

This interface provide functionalities of the machine learning model.

You should firstly create the model with specified type via Create(), then adjust its parameters via ILParameterized interface.
Currently, we support following models:

ModelUsage and Parameters
KNNK-Nearest Neighbors
Parameter NameUsageTypeRangeDefault
"number of neighbors"Number of neighbors used for predictionInteger1 ~ 645
"matching algorithm"The algorithm for the nearest searchingIntegersee LPVKNNMatchAlgoBrute-Force
"similarity metric"The distance calculation method for measuring the similarity between samplesIntegersee LPVKNNDistanceEuclidean
"weight"How neighbors are weighted in prediction votingIntegersee LPVKNNWeightBy distance
SVMSupport Vector Machine
Parameter NameUsageTypeRangeDefault
"svm type"The type of the SVM modelIntegersee LPVSVMTypeC-Support
"cost"The regularization parameter C, the strength of the regularization is inversely proportional to C.Integer> 0 0.01
"complexity bound"The Nu parameter to control the number of support vectors and margin errors. It is and upper bound on the fraction of margin errors and a lower bound of the fraction of support vectorsDouble0 ~ 10.5
"kernel"The kernel functionIntegersee LPVSVMKernelLinear
"g"g parameter in the kernel functionDouble> 0, 0 for auto-estimated0.1
"c"c parameter in the kernel functionDouble≥ 0 0.1
"n"n parameter in the kernel functionDouble> 0 3

Example Code