HparamSearchSpaces.fromJson constructor

HparamSearchSpaces.fromJson(
  1. Map json_
)

Implementation

HparamSearchSpaces.fromJson(core.Map json_)
    : this(
        activationFn: json_.containsKey('activationFn')
            ? StringHparamSearchSpace.fromJson(
                json_['activationFn'] as core.Map<core.String, core.dynamic>)
            : null,
        batchSize: json_.containsKey('batchSize')
            ? IntHparamSearchSpace.fromJson(
                json_['batchSize'] as core.Map<core.String, core.dynamic>)
            : null,
        boosterType: json_.containsKey('boosterType')
            ? StringHparamSearchSpace.fromJson(
                json_['boosterType'] as core.Map<core.String, core.dynamic>)
            : null,
        colsampleBylevel: json_.containsKey('colsampleBylevel')
            ? DoubleHparamSearchSpace.fromJson(json_['colsampleBylevel']
                as core.Map<core.String, core.dynamic>)
            : null,
        colsampleBynode: json_.containsKey('colsampleBynode')
            ? DoubleHparamSearchSpace.fromJson(json_['colsampleBynode']
                as core.Map<core.String, core.dynamic>)
            : null,
        colsampleBytree: json_.containsKey('colsampleBytree')
            ? DoubleHparamSearchSpace.fromJson(json_['colsampleBytree']
                as core.Map<core.String, core.dynamic>)
            : null,
        dartNormalizeType: json_.containsKey('dartNormalizeType')
            ? StringHparamSearchSpace.fromJson(json_['dartNormalizeType']
                as core.Map<core.String, core.dynamic>)
            : null,
        dropout: json_.containsKey('dropout')
            ? DoubleHparamSearchSpace.fromJson(
                json_['dropout'] as core.Map<core.String, core.dynamic>)
            : null,
        hiddenUnits: json_.containsKey('hiddenUnits')
            ? IntArrayHparamSearchSpace.fromJson(
                json_['hiddenUnits'] as core.Map<core.String, core.dynamic>)
            : null,
        l1Reg: json_.containsKey('l1Reg')
            ? DoubleHparamSearchSpace.fromJson(
                json_['l1Reg'] as core.Map<core.String, core.dynamic>)
            : null,
        l2Reg: json_.containsKey('l2Reg')
            ? DoubleHparamSearchSpace.fromJson(
                json_['l2Reg'] as core.Map<core.String, core.dynamic>)
            : null,
        learnRate: json_.containsKey('learnRate')
            ? DoubleHparamSearchSpace.fromJson(
                json_['learnRate'] as core.Map<core.String, core.dynamic>)
            : null,
        maxTreeDepth: json_.containsKey('maxTreeDepth')
            ? IntHparamSearchSpace.fromJson(
                json_['maxTreeDepth'] as core.Map<core.String, core.dynamic>)
            : null,
        minSplitLoss: json_.containsKey('minSplitLoss')
            ? DoubleHparamSearchSpace.fromJson(
                json_['minSplitLoss'] as core.Map<core.String, core.dynamic>)
            : null,
        minTreeChildWeight: json_.containsKey('minTreeChildWeight')
            ? IntHparamSearchSpace.fromJson(json_['minTreeChildWeight']
                as core.Map<core.String, core.dynamic>)
            : null,
        numClusters: json_.containsKey('numClusters')
            ? IntHparamSearchSpace.fromJson(
                json_['numClusters'] as core.Map<core.String, core.dynamic>)
            : null,
        numFactors: json_.containsKey('numFactors')
            ? IntHparamSearchSpace.fromJson(
                json_['numFactors'] as core.Map<core.String, core.dynamic>)
            : null,
        numParallelTree: json_.containsKey('numParallelTree')
            ? IntHparamSearchSpace.fromJson(json_['numParallelTree']
                as core.Map<core.String, core.dynamic>)
            : null,
        optimizer: json_.containsKey('optimizer')
            ? StringHparamSearchSpace.fromJson(
                json_['optimizer'] as core.Map<core.String, core.dynamic>)
            : null,
        subsample: json_.containsKey('subsample')
            ? DoubleHparamSearchSpace.fromJson(
                json_['subsample'] as core.Map<core.String, core.dynamic>)
            : null,
        treeMethod: json_.containsKey('treeMethod')
            ? StringHparamSearchSpace.fromJson(
                json_['treeMethod'] as core.Map<core.String, core.dynamic>)
            : null,
        walsAlpha: json_.containsKey('walsAlpha')
            ? DoubleHparamSearchSpace.fromJson(
                json_['walsAlpha'] as core.Map<core.String, core.dynamic>)
            : null,
      );