| 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; }
Public Property ClassWeights As Mat
Get
Set
public:
property Mat^ ClassWeights {
Mat^ get ();
void set (Mat^ value);
}
member ClassWeights : Mat with get, set
Property Value
Type:
MatRemarks
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