static void StartTrainingWork(object state) { int mode = (int)state; var algo = new Actor(mode); var result = algo.Train(Settings.Default.GetLimit(mode), null); SaveFactors(mode, result); }
static void Train(int mode) { // train/save var algo = new Actor(mode); var result = algo.Train(); // show report var report = ResultText(result); Far.Api.Message(report, "Training results", MessageOptions.LeftAligned); }
static void Train(int mode) { // train/save var algo = new Actor(mode); var result = algo.Train(Settings.Default.GetLimit(mode), null); SaveFactors(mode, result); // show report var report = ResultText(result); Far.Api.Message(report, "Training results", MessageOptions.LeftAligned); }