| 6 | |
| 7 | namespace 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; |
no test coverage detected