loadFromFile static method

Future<ANN> loadFromFile(
  1. String path, {
  2. int? seed,
  3. int? epochs,
  4. double? lr,
})

Implementation

static Future<ANN> loadFromFile(
  String path, {
  int? seed,
  int? epochs,
  double? lr,
}) async {
  final f = File(path);
  final s = await f.readAsString();
  return fromJson(s, seed: seed, epochs: epochs, lr: lr);
}