Layer.fromNeurons constructor

Layer.fromNeurons(
  1. int nin,
  2. int nout
)

Implementation

factory Layer.fromNeurons(int nin, int nout) {
  final neurons = List<Neuron>.generate(
      nout, (int index) => Neuron.fromWeights(nin),
      growable: false);
  return Layer(neurons);
}