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); }
static void load(string fileName) { try { startNet = (StartNet)BinarySeriaLizer.ReserializeMethod(saveFileName); Console.WriteLine("加载成功!文件名:" + saveFileName); } catch (Exception ew) { Console.WriteLine(ew.Message); return; } startNet.LoadStaticValue(); }