private void AutoEvent(object sender, EventArgs e) { if (Perceptron.Finish()) { timer.Stop(); Foreground = System.Windows.Media.Brushes.Green; Learn = "Learned"; return; } OneStep(); }
private bool CanStep() { if (!Perceptron.Finish()) { return(true); } else { Learn = "Learned"; Foreground = System.Windows.Media.Brushes.Green; return(false); } }
private void Fast() { while (!Perceptron.Finish()) { OneStep(); if (Iteration > 500) { MessageBox.Show("Stagnation", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } Foreground = System.Windows.Media.Brushes.Green; Learn = "Learned"; }