private void backpropagationToolStripMenuItem_Click(object sender, EventArgs e) { Backpropagation backpropagation = new Backpropagation(); backpropagation.Show(); }
public void Learn(List <double[]> input, List <double[]> desiredOutput, double alpha, double maxError, int noIterations, Backpropagation back) { double err = 99999; log = new List <string>(); CheckForIllegalCrossThreadCalls = false; int currentIteration = 1; while (err > maxError && currentIteration <= noIterations) { ApplyBackPropagation(input, desiredOutput, alpha); err = GeneralError(input, desiredOutput); log.Add(err.ToString()); Console.WriteLine(err + "--------" + currentIteration); if (back.chart1.IsHandleCreated && back.txtCurrentIteration.IsHandleCreated) { back.Invoke((MethodInvoker) delegate { back.DrawChart1(currentIteration, err); }); } currentIteration++; } }
public SimulateBackpropagation(Backpropagation backpropagation) { InitializeComponent(); networkService = new NetworkService(); }