RegressionMetrics.fromJson constructor

RegressionMetrics.fromJson(
  1. Map json_
)

Implementation

RegressionMetrics.fromJson(core.Map json_)
    : this(
        meanAbsoluteError: json_.containsKey('meanAbsoluteError')
            ? (json_['meanAbsoluteError'] as core.num).toDouble()
            : null,
        meanSquaredError: json_.containsKey('meanSquaredError')
            ? (json_['meanSquaredError'] as core.num).toDouble()
            : null,
        meanSquaredLogError: json_.containsKey('meanSquaredLogError')
            ? (json_['meanSquaredLogError'] as core.num).toDouble()
            : null,
        medianAbsoluteError: json_.containsKey('medianAbsoluteError')
            ? (json_['medianAbsoluteError'] as core.num).toDouble()
            : null,
        rSquared: json_.containsKey('rSquared')
            ? (json_['rSquared'] as core.num).toDouble()
            : null,
      );