AggregateClassificationMetrics.fromJson constructor
AggregateClassificationMetrics.fromJson(
- Map json_
Implementation
AggregateClassificationMetrics.fromJson(core.Map json_)
: this(
accuracy: json_.containsKey('accuracy')
? (json_['accuracy'] as core.num).toDouble()
: null,
f1Score: json_.containsKey('f1Score')
? (json_['f1Score'] as core.num).toDouble()
: null,
logLoss: json_.containsKey('logLoss')
? (json_['logLoss'] as core.num).toDouble()
: null,
precision: json_.containsKey('precision')
? (json_['precision'] as core.num).toDouble()
: null,
recall: json_.containsKey('recall')
? (json_['recall'] as core.num).toDouble()
: null,
rocAuc: json_.containsKey('rocAuc')
? (json_['rocAuc'] as core.num).toDouble()
: null,
threshold: json_.containsKey('threshold')
? (json_['threshold'] as core.num).toDouble()
: null,
);