diff --git a/src/metric/elementwise_metric.cu b/src/metric/elementwise_metric.cu index c491346794b2..7c861cc5eb5a 100644 --- a/src/metric/elementwise_metric.cu +++ b/src/metric/elementwise_metric.cu @@ -178,7 +178,7 @@ class PseudoErrorLoss : public MetricNoCache { auto const& obj = get(in); auto it = obj.find("pseudo_huber_param"); if (it != obj.cend()) { - FromJson(in->second, ¶m_); + FromJson(it->second, ¶m_); auto const& name = get(in["name"]); CHECK_EQ(name, this->Name()); }