Beispiel #1
0
        public Form1()
        {            
            InitializeComponent();

            nn = new NN(2, 1, 1, 4, 1);
            pool = new GP(poolSize, nn.weightCount());
            
            for (byte b = 0; b < 4; b++)
            {
                bits[b, 0] = GetBit(b, 0) ? 1 : -1;
                bits[b, 1] = GetBit(b, 1) ? 1 : -1;
            }
        }
Beispiel #2
0
 private void buttonReset_Click(object sender, EventArgs e)
 {
     nn = new NN(2, 1, 1, 4, 1);
     pool = new GP(poolSize, nn.weightCount());
 }