예제 #1
0
 static void GUI()
 {
     Logger.Enabled = true;
     new GUIProgram(
         tomatoDir,
         "TrainingSet.txt",
         loader => TomatoSetHelper.SplitExact(300, 300, loader),
         new Size(800, 600)
         ).Start();
 }
예제 #2
0
        static void EvalPerfomance()
        {
            var classifier = standardClassifier();

            Logger.Enabled = true;
            var program = new ConsolePerformanceEvaluator(
                tomatoDir,
                "TrainingSet.txt",
                loader => TomatoSetHelper.SplitExact(300, 300, loader),
                new List <TomatoClassifier>(new TomatoClassifier[] { classifier })
                );

            program.Start();
        }
예제 #3
0
        static void ExportFeatureOnCsv()
        {
            var extractor = new LBPExtractor(false);

            Logger.Enabled = true;
            var program = new ExtractCSVProgram(
                tomatoDir,
                "TrainingSet.txt",
                loader => TomatoSetHelper.SplitExact(100, 100, loader),
                extractor
                );

            program.Start();
        }
예제 #4
0
        static void CompetiotionOutput()
        {
            var classifier = standardClassifier();

            Logger.Enabled = true;
            var program = new ConsoleCompetitionOutput(
                tomatoDir,
                "TrainingSet.txt",
                loader => TomatoSetHelper.SplitExact(300, 300, loader),
                classifier,
                "TestSet.txt"
                );

            program.Start();
        }