Combine TreeModel and RegTree (#3995)

This commit is contained in:
Rory Mitchell
2018-12-19 12:16:40 +13:00
committed by GitHub
parent c055a32609
commit 84c99f86f4
10 changed files with 559 additions and 605 deletions

View File

@@ -272,7 +272,6 @@ class GBTree : public GradientBooster {
// create new tree
std::unique_ptr<RegTree> ptr(new RegTree());
ptr->param.InitAllowUnknown(this->cfg_);
ptr->InitModel();
new_trees.push_back(ptr.get());
ret->push_back(std::move(ptr));
} else if (tparam_.process_type == kUpdate) {