MultiLayerPerceptron constructor
Implementation
MultiLayerPerceptron({
required this.neuronInputsCount,
required this.layerNeuronCounts,
}) : layers = List.generate(
layerNeuronCounts.length,
(i) => Layer(
neuronInputsCount:
i == 0
? neuronInputsCount
: layerNeuronCounts.elementAt(
i - 1,
), // Previous layer's output count
neuronsCount: layerNeuronCounts.elementAt(i),
),
);