Click or drag to resize
Accord.NET (logo) BaseSupportVectorClassificationTModel, TKernel, TInputComplexity Property
Complexity (cost) parameter C. Increasing the value of C forces the creation of a more accurate model that may not generalize well. If this value is not set and UseComplexityHeuristic is set to true, the framework will automatically guess a value for C. If this value is manually set to something else, then UseComplexityHeuristic will be automatically disabled and the given value will be used instead.

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

Property Value

Type: Double
Remarks

The cost parameter C controls the trade off between allowing training errors and forcing rigid margins. It creates a soft margin that permits some misclassifications. Increasing the value of C increases the cost of misclassifying points and forces the creation of a more accurate model that may not generalize well.

If this value is not set and UseComplexityHeuristic is set to true, the framework will automatically guess a suitable value for C by calling EstimateComplexityTKernel, TInput(TKernel, TInput). If this value is manually set to something else, then the class will respect the new value and automatically disable UseComplexityHeuristic.

See Also