BinaryClassificationMetrics.fromJson constructor
BinaryClassificationMetrics.fromJson(
- Map json_
Implementation
BinaryClassificationMetrics.fromJson(core.Map json_)
: this(
aggregateClassificationMetrics:
json_.containsKey('aggregateClassificationMetrics')
? AggregateClassificationMetrics.fromJson(
json_['aggregateClassificationMetrics']
as core.Map<core.String, core.dynamic>)
: null,
binaryConfusionMatrixList:
json_.containsKey('binaryConfusionMatrixList')
? (json_['binaryConfusionMatrixList'] as core.List)
.map((value) => BinaryConfusionMatrix.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
negativeLabel: json_.containsKey('negativeLabel')
? json_['negativeLabel'] as core.String
: null,
positiveLabel: json_.containsKey('positiveLabel')
? json_['positiveLabel'] as core.String
: null,
);