Click or drag to resize

SVMClassWeights Property

Optional weights in the SVM::C_SVC problem, assigned to particular classes.

Namespace:  OpenCvSharp.ML
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public Mat ClassWeights { get; set; }

Property Value

Type: Mat
Remarks
They are multiplied by _C_ so the parameter _C_ of class _i_ becomes `classWeights(i) * C`. Thus these weights affect the misclassification penalty for different classes. The larger weight, the larger penalty on misclassification of data from the corresponding class. Default value is empty Mat.
See Also