Optional weights in the SVM::C_SVC problem, assigned to particular classes.
Namespace:
OpenCvSharp.ML
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic 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
function get_ClassWeights();
function set_ClassWeights(value);
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