Skip to content

Commit

Permalink
Change to using colon.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jun 12, 2021
1 parent 9a53f35 commit e753e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tree/tree_model.cc
Expand Up @@ -315,7 +315,7 @@ class TextGenerator : public TreeGenerator {
auto cats = GetSplitCategories(tree, nid);
std::string cats_str = PrintCatsAsSet(cats);
static std::string const kNodeTemplate =
"{tabs}{nid}:[{fname}={cond}] yes={right},no={left},missing={missing}";
"{tabs}{nid}:[{fname}:{cond}] yes={right},no={left},missing={missing}";
std::string const result =
SplitNodeImpl(tree, nid, kNodeTemplate, cats_str, depth);
return result;
Expand Down Expand Up @@ -662,7 +662,7 @@ class GraphvizGenerator : public TreeGenerator {

std::string Categorical(RegTree const& tree, int32_t nid, uint32_t) const override {
static std::string const kLabelTemplate =
" {nid} [ label=\"{fname}={cond}\" {params}]\n";
" {nid} [ label=\"{fname}:{cond}\" {params}]\n";
auto cats = GetSplitCategories(tree, nid);
auto cats_str = PrintCatsAsSet(cats);
auto split = tree[nid].SplitIndex();
Expand Down

0 comments on commit e753e78

Please sign in to comment.