コード例 #1
0
 private void AutoEvent(object sender, EventArgs e)
 {
     if (Perceptron.Finish())
     {
         timer.Stop(); Foreground = System.Windows.Media.Brushes.Green; Learn = "Learned"; return;
     }
     OneStep();
 }
コード例 #2
0
 private bool CanStep()
 {
     if (!Perceptron.Finish())
     {
         return(true);
     }
     else
     {
         Learn      = "Learned";
         Foreground = System.Windows.Media.Brushes.Green;
         return(false);
     }
 }
コード例 #3
0
 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";
 }