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

Method ToStr

library/cpp/expression/expression_variable.cpp:341–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341TString TExpressionVariable::ToStr() const {
342 if (HasStrValue) {
343 return StringValue;
344 }
345 if (HasHistogramPointsAndBinsValue) {
346 StringValue = ToString(HistogramPointsAndBinsValue);
347 return StringValue;
348 }
349 if (HasDoubleValue) {
350 StringValue = ToString(DoubleValue);
351 return StringValue;
352 }
353 return "";
354}
355
356THistogramPointsAndBins TExpressionVariable::ToHistogramPointsAndBins() const {
357 if (HasHistogramPointsAndBinsValue) {

Callers 5

StrCondMethod · 0.80
CalcExpressionFunction · 0.80
CalcVariantExpressionMethod · 0.80
CalcExpressionStrMethod · 0.80
Y_UNIT_TESTFunction · 0.80

Calls 1

ToStringFunction · 0.50

Tested by

no test coverage detected