| 72 | } |
| 73 | |
| 74 | void 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 | |
| 97 | void TMetricsPlotCalcer::Append( |
| 98 | const TVector<TVector<double>>& approx, |
nothing calls this directly
no test coverage detected