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

Function ToHumanReadableString

catboost/libs/monoforest/helpers.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7namespace NMonoForest {
8 TString ToHumanReadableString(const TBinarySplit& split, const IGrid& grid) {
9 TStringBuilder builder;
10 builder << "[F" << grid.ExternalFlatFeatureIndex(split.FeatureId);
11 builder << (split.SplitType == EBinSplitType::TakeGreater ? " > " : " = ");
12 builder << grid.Border(split.FeatureId, split.BinIdx);
13 builder << "]";
14 return builder;
15 }
16
17 TString ToHumanReadableString(const TMonomStructure& structure, const IGrid& grid) {
18 TStringBuilder builder;

Callers 1

Calls 4

JoinSeqFunction · 0.85
BorderMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected