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

Function CreateErrorTracker

catboost/cuda/methods/boosting_progress_tracker.cpp:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4namespace 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;

Callers 2

BuildErrorTrackerFunction · 0.50

Calls 1

GetBestValueMethod · 0.45

Tested by

no test coverage detected