Parameter validation (#5157)

* Unused code.

* Split up old colmaker parameters from train param.

* Fix dart.

* Better name.
This commit is contained in:
Jiaming Yuan
2019-12-26 11:59:05 +08:00
committed by GitHub
parent ced3660f60
commit f3d7877802
5 changed files with 128 additions and 31 deletions

View File

@@ -359,9 +359,7 @@ class Dart : public GBTree {
void Configure(const Args& cfg) override {
GBTree::Configure(cfg);
if (model_.trees.size() == 0) {
dparam_.UpdateAllowUnknown(cfg);
}
dparam_.UpdateAllowUnknown(cfg);
}
void SaveModel(Json *p_out) const override {