| 3 | |
| 4 | namespace NCatboostCuda { |
| 5 | static inline TErrorTracker CreateErrorTracker(const NCatboostOptions::TOverfittingDetectorOptions& odOptions, |
| 6 | const IMetric& metric, |
| 7 | bool hasTest) { |
| 8 | float bestValue = 0; |
| 9 | EMetricBestValue metricBestValueType; |
| 10 | metric.GetBestValue(&metricBestValueType, &bestValue); |
| 11 | return CreateErrorTracker(odOptions, static_cast<double>(bestValue), metricBestValueType, hasTest); |
| 12 | } |
| 13 | |
| 14 | static inline TVector<const IMetric*> GetCpuMetrics(const TVector<THolder<IGpuMetric>>& metrics) { |
| 15 | TVector<const IMetric*> cpuMetrics; |
no test coverage detected