|
KernelEstimateComplexityTKernel, TInput Method (TKernel, TInput, Int32)
|
Estimates the complexity parameter C, present in many SVM algorithms,
for a given kernel and an unbalanced data set by summing every element
on the diagonal of the kernel matrix and using an heuristic based on it.
Namespace:
Accord.Statistics.Kernels
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static Tuple<double, double> EstimateComplexity<TKernel, TInput>(
this TKernel kernel,
TInput[] inputs,
int[] outputs
)
where TKernel : Object, IKernel<TInput>
<ExtensionAttribute>
Public Shared Function EstimateComplexity(Of TKernel As {Object, IKernel(Of TInput)}, TInput) (
kernel As TKernel,
inputs As TInput(),
outputs As Integer()
) As Tuple(Of Double, Double)
Request Example
View SourceParameters
- kernel
- Type: TKernel
The kernel function. - inputs
- Type: TInput
The input samples. - outputs
- Type: SystemInt32
The output samples.
Type Parameters
- TKernel
- TInput
Return Value
Type:
TupleDouble,
DoubleA suitable value for positive C and negative C, respectively.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also