You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
246 B
JavaScript

class NeuronLayer
{
constructor(numNeuronsPerHiddenLayer, numInputs)
{
this.neurons = [];
for (var i = 0; i < numNeuronsPerHiddenLayer; ++i)
{
var newNeuron = new Neuron(numInputs);
this.neurons.push(newNeuron);
}
}
}