示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }