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