コード例 #1
0
        public static void AssertDefaultTrains(this Opt testSubject, TrainType trainType, TrainAlgo trainAlgo)
        {
            AssertDefaults(testSubject);
            testSubject.Mode.Should().Be((int)OptMode.Train);

            testSubject.Type.Should().Be(trainType.GetDescription());
            testSubject.Algo.Should().Be(trainAlgo.GetDescription());
        }
コード例 #2
0
 internal TrainOpt(TrainType trainType, TrainAlgo trainAlgo)
 {
     this.opt.Mode = (int)OptMode.Train;
     this.opt.Type = trainType.GetDescription();
     this.opt.Algo = trainAlgo.GetDescription();
 }