Neuron constructor
Neuron({
- required int inputsCount,
Implementation
Neuron({required this.inputsCount})
: weights = List.generate(
inputsCount,
(i) => Value(_random.nextDouble() * 2 - 1)..label = 'w$i',
),
bias = Value(_random.nextDouble() * 2 - 1)..label = 'bias';