Property ClassWeights
- Namespace
- OpenCvSharp.ML
- Assembly
- OpenCvSharp.dll
ClassWeights
Optional weights in the SVM::C_SVC problem, assigned to particular classes.
public Mat ClassWeights { get; set; }
Property Value
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.