public Form1() { InitializeComponent(); sensors = new List <int>(); for (int i = 0; i < 26; i++) { sensors.Add(0); } sensors[0] = 1; List <Neuron> neurons = new List <Neuron>(); for (int i = 0; i < Desires.GetDictionary().Count; i++) { neurons.Add(new Neuron()); } perceptron = new Perceptron(neurons); }
private void button26_Click(object sender, EventArgs e) { perceptron.Train(TrainData.GetDictionary(), Desires.GetDictionary()); MessageBox.Show("Done"); }