コード例 #1
0
        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);
        }
コード例 #2
0
 private void button26_Click(object sender, EventArgs e)
 {
     perceptron.Train(TrainData.GetDictionary(), Desires.GetDictionary());
     MessageBox.Show("Done");
 }