ANN constructor

ANN({
  1. required List<int> layers,
  2. int epochs = 100,
  3. double lr = 0.01,
  4. int? seed,
})

Implementation

ANN({required this.layers, this.epochs = 100, this.lr = 0.01, int? seed})
  : _rand = seed != null ? Random(seed) : Random() {
  if (layers.length < 2) {
    throw ArgumentError('layers must include input and output sizes');
  }
}