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

Method GetNanMode

catboost/libs/data/quantized_features_info.cpp:250–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248 }
249
250 ENanMode TQuantizedFeaturesInfo::GetNanMode(const TFloatFeatureIdx floatFeatureIdx) const {
251 CheckCorrectPerTypeFeatureIdx(floatFeatureIdx);
252 ENanMode nanMode = ENanMode::Forbidden;
253 if (NanModes.contains(*floatFeatureIdx)) {
254 nanMode = NanModes.at(*floatFeatureIdx);
255 }
256 return nanMode;
257 }
258
259 ui32 TQuantizedFeaturesInfo::CalcMaxCategoricalFeaturesUniqueValuesCountOnLearn() const {
260 ui32 maxCategoricalFeaturesUniqueValuesCountOnLearn = 0;

Callers 8

DumpMethod · 0.45
TIsNonDefaultMethod · 0.45
TValueQuantizerMethod · 0.45
ProcessFloatFeatureFunction · 0.45
GetBlockIteratorMethod · 0.45

Calls 2

containsMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected