Skip to content

Commit

Permalink
Fix typo. (#7680)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored Feb 19, 2022
1 parent b2341ea commit 671b3c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tree/tree_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,8 @@ void RegTree::Save(dmlc::Stream* fo) const {
CHECK_EQ(param.num_nodes, static_cast<int>(stats_.size()));
CHECK_EQ(param.deprecated_num_roots, 1);
CHECK_NE(param.num_nodes, 0);
CHECK(!HasCategoricalSplit()) << "Please JSON/UBJSON for saving models with categorical splits.";
CHECK(!HasCategoricalSplit())
<< "Please use JSON/UBJSON for saving models with categorical splits.";

if (DMLC_IO_NO_ENDIAN_SWAP) {
fo->Write(&param, sizeof(TreeParam));
Expand Down

0 comments on commit 671b3c8

Please sign in to comment.