예제 #1
0
 public _1DMatrix feedForward(_1DMatrix a)
 {
     for (int i = 1; i < num_layers; i++)
     {
     }
     return(null);
 }
예제 #2
0
        public Network(int[] sizes)
        {
            num_layers = sizes.Length;
            this.sizes = sizes;
            //biases = new double[num_layers];
            biases = new _1DMatrix[num_layers];

            //the first layer is input layer so it does not contain any biases
            for (int i = 1; i < num_layers; i++)
            {
                biases[i] = new _1DMatrix(sizes[i]);
                biases[i].generateRand();
                weights[i] = new _2DMatrix(sizes[i - 1], sizes[i]);
                weights[i].generateRand();
            }
        }