Example #1
0
 public void forward(double[,] inputs)
 {
     this.output = Numpy.sum(Numpy.dot(inputs, this.weights), this.biases);
 }
Example #2
0
 public DenseLayer(int n_inputs, int n_neurons)
 {
     this.weights = Numpy.randn(n_inputs, n_neurons);
     this.biases  = Numpy.zeros(1, n_neurons);
 }