MultiClassClassificationMetrics.fromJson constructor

MultiClassClassificationMetrics.fromJson(
  1. Map json_
)

Implementation

MultiClassClassificationMetrics.fromJson(core.Map json_)
    : this(
        aggregateClassificationMetrics:
            json_.containsKey('aggregateClassificationMetrics')
                ? AggregateClassificationMetrics.fromJson(
                    json_['aggregateClassificationMetrics']
                        as core.Map<core.String, core.dynamic>)
                : null,
        confusionMatrixList: json_.containsKey('confusionMatrixList')
            ? (json_['confusionMatrixList'] as core.List)
                .map((value) => ConfusionMatrix.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );