private Accord.MachineLearning.VectorMachines.Learning.ISupportVectorMachineLearning getAlg(KernelSupportVectorMachine svm, double[][] classInputs, int[] classOutputs)
 {
     Accord.MachineLearning.VectorMachines.Learning.SequentialMinimalOptimization smo = new Accord.MachineLearning.VectorMachines.Learning.SequentialMinimalOptimization(svm, classInputs, classOutputs);
     double c = Accord.MachineLearning.VectorMachines.Learning.SequentialMinimalOptimization.EstimateComplexity(svm.Kernel, classInputs);
     smo.Complexity = c;
     smo.Tolerance = 0.01;
     return (Accord.MachineLearning.VectorMachines.Learning.ISupportVectorMachineLearning)smo;
 }
Esempio n. 2
0
        private Accord.MachineLearning.VectorMachines.Learning.ISupportVectorMachineLearning getAlg(KernelSupportVectorMachine svm, double[][] classInputs, int[] classOutputs)
        {
            Accord.MachineLearning.VectorMachines.Learning.SequentialMinimalOptimization smo = new Accord.MachineLearning.VectorMachines.Learning.SequentialMinimalOptimization(svm, classInputs, classOutputs);
            double c = Accord.MachineLearning.VectorMachines.Learning.SequentialMinimalOptimization.EstimateComplexity(svm.Kernel, classInputs);

            smo.Complexity = c;
            smo.Tolerance  = 0.01;
            return((Accord.MachineLearning.VectorMachines.Learning.ISupportVectorMachineLearning)smo);
        }