Click or drag to resize
Accord.NET (logo)

BaseSupportVectorClassificationTModel, TKernel, TInputWeightRatio Property

Gets or sets the weight ratio between positive and negative class weights. This ratio controls how much of the Complexity parameter C should be applied to the positive class.

Namespace:  Accord.MachineLearning.VectorMachines.Learning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.5.0
Syntax
public double WeightRatio { get; set; }
Request Example View Source

Property Value

Type: Double
Remarks

A weight ratio lesser than one, such as 1/10 (0.1) means 10% of C will be applied to the positive class, while 100% of C will be applied to the negative class.

A weight ratio greater than one, such as 10/1 (10) means that 100% of C will be applied to the positive class, while 10% of C will be applied to the negative class.

See Also