MCPcopy Create free account
hub / github.com/catboost/catboost / ComputeAdditiveMetric

Method ComputeAdditiveMetric

catboost/private/libs/algo/plot.cpp:74–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void TMetricsPlotCalcer::ComputeAdditiveMetric(
75 const TVector<TVector<double>>& approx,
76 TMaybeData<TConstArrayRef<TConstArrayRef<float>>> target,
77 TConstArrayRef<float> weights,
78 TConstArrayRef<TQueryInfo> queriesInfo,
79 ui32 plotLineIndex
80) {
81 auto results = EvalErrorsWithCaching(
82 approx,
83 /*approxDelts*/{},
84 /*isExpApprox*/false,
85 target.GetOrElse(TConstArrayRef<TConstArrayRef<float>>()),
86 weights,
87 queriesInfo,
88 AdditiveMetrics,
89 &Executor
90 );
91
92 for (auto metricId : xrange(AdditiveMetrics.size())) {
93 AdditiveMetricPlots[metricId][plotLineIndex].Add(results[metricId]);
94 }
95}
96
97void TMetricsPlotCalcer::Append(
98 const TVector<TVector<double>>& approx,

Callers

nothing calls this directly

Calls 5

xrangeFunction · 0.85
EvalErrorsWithCachingFunction · 0.50
GetOrElseMethod · 0.45
sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected