SampleApp.MainForm.btnEstimateC_Click C# (CSharp) Method

btnEstimateC_Click() private method

This method automatically estimates a good starting point for the complexity parameter (C) of the SVM learning algorithm.
private btnEstimateC_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void btnEstimateC_Click(object sender, EventArgs e)
        {
            // Extract inputs
            double[][] inputs;
            int[] outputs;
            getData(out inputs, out outputs);

            IKernel kernel = getKernel();

            numComplexity.Value = (decimal)kernel.EstimateComplexity(inputs);
        }
MainForm