FindMatchesMetrics.fromJson constructor

FindMatchesMetrics.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FindMatchesMetrics.fromJson(Map<String, dynamic> json) {
  return FindMatchesMetrics(
    areaUnderPRCurve: json['AreaUnderPRCurve'] as double?,
    columnImportances: (json['ColumnImportances'] as List?)
        ?.whereNotNull()
        .map((e) => ColumnImportance.fromJson(e as Map<String, dynamic>))
        .toList(),
    confusionMatrix: json['ConfusionMatrix'] != null
        ? ConfusionMatrix.fromJson(
            json['ConfusionMatrix'] as Map<String, dynamic>)
        : null,
    f1: json['F1'] as double?,
    precision: json['Precision'] as double?,
    recall: json['Recall'] as double?,
  );
}