BqmlTrainingRunTrainingOptions.fromJson constructor

BqmlTrainingRunTrainingOptions.fromJson(
  1. Map json_
)

Implementation

BqmlTrainingRunTrainingOptions.fromJson(core.Map json_)
    : this(
        earlyStop: json_.containsKey('earlyStop')
            ? json_['earlyStop'] as core.bool
            : null,
        l1Reg: json_.containsKey('l1Reg')
            ? (json_['l1Reg'] as core.num).toDouble()
            : null,
        l2Reg: json_.containsKey('l2Reg')
            ? (json_['l2Reg'] as core.num).toDouble()
            : null,
        learnRate: json_.containsKey('learnRate')
            ? (json_['learnRate'] as core.num).toDouble()
            : null,
        learnRateStrategy: json_.containsKey('learnRateStrategy')
            ? json_['learnRateStrategy'] as core.String
            : null,
        lineSearchInitLearnRate: json_.containsKey('lineSearchInitLearnRate')
            ? (json_['lineSearchInitLearnRate'] as core.num).toDouble()
            : null,
        maxIteration: json_.containsKey('maxIteration')
            ? json_['maxIteration'] as core.String
            : null,
        minRelProgress: json_.containsKey('minRelProgress')
            ? (json_['minRelProgress'] as core.num).toDouble()
            : null,
        warmStart: json_.containsKey('warmStart')
            ? json_['warmStart'] as core.bool
            : null,
      );