Check external memory support for exact tree method. (#7088)

This commit is contained in:
Jiaming Yuan 2021-07-08 02:12:57 +08:00 committed by GitHub
parent 615ab2b03e
commit 689eb8f620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,10 @@ class ColMaker: public TreeUpdater {
LOG(FATAL) << "Updater `grow_colmaker` or `exact` tree method doesn't "
"support distributed training.";
}
if (!dmat->SingleColBlock()) {
LOG(FATAL) << "Updater `grow_colmaker` or `exact` tree method doesn't "
"support external memory training.";
}
this->LazyGetColumnDensity(dmat);
// rescale learning rate according to size of trees
float lr = param_.learning_rate;