Esempio n. 1
0
 public static void Train(int trainNumber)
 {
     if (startNet == null)
     {
         startNet = new StartNet();
     }
     startNet.TrainPath                 = trainPath1;
     startNet.StandMiniBatchSize        = mini_batchsize;
     startNet.FileMaxAverageMinSaveName = fileMaxAverageMinSaveName;
     startNet.Train(trainNumber);
 }
Esempio n. 2
0
 static void load(string fileName)
 {
     try
     {
         startNet = (StartNet)BinarySeriaLizer.ReserializeMethod(saveFileName);
         Console.WriteLine("加载成功!文件名:" + saveFileName);
     }
     catch (Exception ew)
     {
         Console.WriteLine(ew.Message);
         return;
     }
     startNet.LoadStaticValue();
 }