public void Setup()
        {
            mlParams = new TrainingParameters();
            mlParams.Set(Parameters.Algorithm, Parameters.Algorithms.MaxEnt);
            mlParams.Set(Parameters.Iterations, "10");
            mlParams.Set(Parameters.Cutoff, "5");

            TrainerFactory.RegisterTrainer("Dummy", typeof(DummyTrainer));
        }
 public void TestCustomTrainer3()
 {
     Assert.Throws <InvalidOperationException> (() => {
         TrainerFactory.RegisterTrainer("Nothing", typeof(object));
     });
 }
 public void TestCustomTrainer2()
 {
     Assert.Throws <ArgumentException> (() => {
         TrainerFactory.RegisterTrainer("Dummy", typeof(DummyTrainer));
     });
 }
Esempio n. 4
0
 public void testCustomTrainer3()
 {
     TrainerFactory.RegisterTrainer("Nothing", typeof(object));
 }
Esempio n. 5
0
 public void testCustomTrainer2()
 {
     TrainerFactory.RegisterTrainer("Dummy", typeof(DummyTrainer));
 }