Esempio n. 1
0
 public override Func<double[], double> Learn(LearningData learningData) {
     var svm = new KernelSupportVectorMachine(_kernel, learningData.Variables.Count);
     var smo = new SequentialMinimalOptimization(
             svm, learningData.Inputs, learningData.Outputs);
     smo.Run();
     return svm.Compute;
 }
        public override Func <double[], double> Learn(LearningData learningData)
        {
            var svm = new KernelSupportVectorMachine(_kernel, learningData.Variables.Count);
            var smo = new SequentialMinimalOptimization(
                svm, learningData.Inputs, learningData.Outputs);

            smo.Run();
            return(svm.Compute);
        }
Esempio n. 3
0
 public abstract Func <double[], double> Learn(LearningData learningData);
Esempio n. 4
0
 public abstract Func<double[], double> Learn(LearningData learningData);