GestureTests.ExperimentControl.RunExperiments C# (CSharp) Method

RunExperiments() public method

Entry point for setting up and running the experiments.
public RunExperiments ( ) : void
return void
        public void RunExperiments()
        {
            //load gesture data and report on the number and type of available samples
            dataset = DataLoader.LoadGestureDataFrom(Config.DataPath);

            int training = 0;
            foreach (UserDataSet user_i in dataset)
            {
                training += user_i.TrainingSamples.Count;
            }

            ToTrain = new Dictionary<GestureType, List<GestureSample>>();
            ToRecognize_Training = new Dictionary<GestureType, List<GestureSample>>();
            foreach (GestureType gesture in Config.GesturesToUse)
            {
                ToTrain.Add(gesture, new List<GestureSample>());
                ToRecognize_Training.Add(gesture, new List<GestureSample>());
            }

            PopulateDataSets();
            Recognizer = new LinearClassifier(ToTrain);

            Run();
            Console.WriteLine();
        }

Usage Example

Example #1
0
 static void Main(string[] args)
 {
     ExperimentControl exp = new ExperimentControl();
     exp.RunExperiments();
     //Console.Read();
     DataLoader.ExportFeaturesAsARFF(Config.DataPath, Config.WekaOutputPath);
 }
All Usage Examples Of GestureTests.ExperimentControl::RunExperiments