IterationResult.fromJson constructor
IterationResult.fromJson(
- Map json_
Implementation
IterationResult.fromJson(core.Map json_)
: this(
arimaResult: json_.containsKey('arimaResult')
? ArimaResult.fromJson(
json_['arimaResult'] as core.Map<core.String, core.dynamic>)
: null,
clusterInfos: json_.containsKey('clusterInfos')
? (json_['clusterInfos'] as core.List)
.map((value) => ClusterInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
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,
principalComponentInfos: json_.containsKey('principalComponentInfos')
? (json_['principalComponentInfos'] as core.List)
.map((value) => PrincipalComponentInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
trainingLoss: json_.containsKey('trainingLoss')
? (json_['trainingLoss'] as core.num).toDouble()
: null,
);