示例#1
0
 public CurrentEvaluator(TrainStorageManager tsm)
 {
     trainStorageManager = tsm;
     NetId = trainStorageManager.LoadDefaultNetName();
     if (NetId != null)
     {
         var net      = trainStorageManager.LoadNet(NetId);
         var settings = trainStorageManager.LoadTrainSettings(NetId);
         if (net != null && settings != null)
         {
             Evaluator     = new NetEvaluator(net);
             TrainSettings = settings;
         }
     }
 }
示例#2
0
 public NetDbTrainer(string netId, TrainStorageManager tsm, Job job)
 {
     this.netId          = netId;
     this.storageManager = tsm;
     this.job            = job;
 }