Пример #1
0
 /// <summary>
 /// Starts Training
 /// </summary>
 private void StartTraining()
 {
     balacing.IterationCompleted += Balacing_IterationCompleted;
     balacing.IterationStarted   += Balacing_IterationStarted;
     Genetics.Individuum <Genetics.Decision> best = balacing.Do();
     Console.WriteLine("Best: " + best.Fitness.ToString() + ", Iterations: " + iterations.ToString() + " => results saved!");
     TrainingFinished?.Invoke(this, EventArgs.Empty);
 }
Пример #2
0
 protected void OnTrainingFinished(TrainingResultResponse trainingResultResponse)
 => TrainingFinished?.Invoke(this, trainingResultResponse);
Пример #3
0
 protected void OnTrainingFinished(TrainingProgress progress)
 => TrainingFinished?.Invoke(this, progress);
Пример #4
0
 protected virtual void OnTrainingFinished()
 {
     TrainingFinished?.Invoke(this, EventArgs.Empty);
 }