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

Function HasInvalidValues

catboost/libs/train_lib/train_model.cpp:151–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151static bool HasInvalidValues(const TVector<TVector<double>>& treeLeafValues) {
152 for (const auto& leafValuesDimension : treeLeafValues) {
153 for (double leafValueCoord : leafValuesDimension) {
154 if (!IsValidFloat(leafValueCoord)) {
155 return true;
156 }
157 }
158 }
159 return false;
160}
161
162namespace {
163struct TMetricsData {

Callers 1

TrainFunction · 0.85

Calls 1

IsValidFloatFunction · 0.85

Tested by

no test coverage detected