using Accord.MachineLearning;
using Accord.MachineLearning.VectorMachines.Learning;
using Accord.Statistics.Kernels;
namespace RakamTahminleyici
static void Main(string[] args)
new double[] {0, 0, 1, 1, 0, 1, 1, 1, 1, 1},
new double[] {0, 0, 0, 1, 0, 0, 0, 1, 0, 0},
int[] labels = { 1, 0, };
var teacher = new MulticlassSupportVectorLearning<Gaussian>()
Learner = (param) => new SequentialMinimalOptimization<Gaussian>()
var svm = teacher.Learn(inputs, labels);
double[] testInput = new double[] { 0, 0, 1, 1, 0, 1, 1, 0, 1, 1 };
int predictedLabel = svm.Decide(testInput);
Console.WriteLine("Tahmin edilen rakam: " + predictedLabel);