BqmlIterationResult.fromJson constructor

BqmlIterationResult.fromJson(
  1. Map json_
)

Implementation

BqmlIterationResult.fromJson(core.Map json_)
    : this(
        durationMs: json_.containsKey('durationMs')
            ? json_['durationMs'] as core.String
            : null,
        evalLoss: json_.containsKey('evalLoss')
            ? (json_['evalLoss'] as core.num).toDouble()
            : null,
        index: json_.containsKey('index') ? json_['index'] as core.int : null,
        learnRate: json_.containsKey('learnRate')
            ? (json_['learnRate'] as core.num).toDouble()
            : null,
        trainingLoss: json_.containsKey('trainingLoss')
            ? (json_['trainingLoss'] as core.num).toDouble()
            : null,
      );