Better error message for updating. (#5418)
This commit is contained in:
parent
ab7a46a1a4
commit
fc88105620
@ -279,7 +279,9 @@ void GBTree::BoostNewTrees(HostDeviceVector<GradientPair>* gpair,
|
|||||||
<< "can not be used to modify existing trees. "
|
<< "can not be used to modify existing trees. "
|
||||||
<< "Set `process_type` to `default` if you want to build new trees.";
|
<< "Set `process_type` to `default` if you want to build new trees.";
|
||||||
}
|
}
|
||||||
CHECK_LT(model_.trees.size(), model_.trees_to_update.size());
|
CHECK_LT(model_.trees.size(), model_.trees_to_update.size())
|
||||||
|
<< "No more tree left for updating. For updating existing trees, "
|
||||||
|
<< "boosting rounds can not exceed previous training rounds";
|
||||||
// move an existing tree from trees_to_update
|
// move an existing tree from trees_to_update
|
||||||
auto t = std::move(model_.trees_to_update[model_.trees.size() +
|
auto t = std::move(model_.trees_to_update[model_.trees.size() +
|
||||||
bst_group * tparam_.num_parallel_tree + i]);
|
bst_group * tparam_.num_parallel_tree + i]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user