/// <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); }
protected void OnTrainingFinished(TrainingResultResponse trainingResultResponse) => TrainingFinished?.Invoke(this, trainingResultResponse);
protected void OnTrainingFinished(TrainingProgress progress) => TrainingFinished?.Invoke(this, progress);
protected virtual void OnTrainingFinished() { TrainingFinished?.Invoke(this, EventArgs.Empty); }