Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }