RankingMetrics.fromJson constructor

RankingMetrics.fromJson(
  1. Map json_
)

Implementation

RankingMetrics.fromJson(core.Map json_)
    : this(
        averageRank: json_.containsKey('averageRank')
            ? (json_['averageRank'] as core.num).toDouble()
            : null,
        meanAveragePrecision: json_.containsKey('meanAveragePrecision')
            ? (json_['meanAveragePrecision'] as core.num).toDouble()
            : null,
        meanSquaredError: json_.containsKey('meanSquaredError')
            ? (json_['meanSquaredError'] as core.num).toDouble()
            : null,
        normalizedDiscountedCumulativeGain:
            json_.containsKey('normalizedDiscountedCumulativeGain')
                ? (json_['normalizedDiscountedCumulativeGain'] as core.num)
                    .toDouble()
                : null,
      );