Reduce warning. (#6273)
This commit is contained in:
parent
4e9c4f2d73
commit
cc76724762
@ -134,20 +134,19 @@ void GBTree::PerformTreeMethodHeuristic(DMatrix* fmat) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rabit::IsDistributed()) {
|
if (rabit::IsDistributed()) {
|
||||||
LOG(WARNING) <<
|
LOG(INFO) << "Tree method is automatically selected to be 'approx' "
|
||||||
"Tree method is automatically selected to be 'approx' "
|
"for distributed training.";
|
||||||
"for distributed training.";
|
|
||||||
tparam_.tree_method = TreeMethod::kApprox;
|
tparam_.tree_method = TreeMethod::kApprox;
|
||||||
} else if (!fmat->SingleColBlock()) {
|
} else if (!fmat->SingleColBlock()) {
|
||||||
LOG(WARNING) << "Tree method is automatically set to 'approx' "
|
LOG(INFO) << "Tree method is automatically set to 'approx' "
|
||||||
"since external-memory data matrix is used.";
|
"since external-memory data matrix is used.";
|
||||||
tparam_.tree_method = TreeMethod::kApprox;
|
tparam_.tree_method = TreeMethod::kApprox;
|
||||||
} else if (fmat->Info().num_row_ >= (4UL << 20UL)) {
|
} else if (fmat->Info().num_row_ >= (4UL << 20UL)) {
|
||||||
/* Choose tree_method='approx' automatically for large data matrix */
|
/* Choose tree_method='approx' automatically for large data matrix */
|
||||||
LOG(WARNING) << "Tree method is automatically selected to be "
|
LOG(INFO) << "Tree method is automatically selected to be "
|
||||||
"'approx' for faster speed. To use old behavior "
|
"'approx' for faster speed. To use old behavior "
|
||||||
"(exact greedy algorithm on single machine), "
|
"(exact greedy algorithm on single machine), "
|
||||||
"set tree_method to 'exact'.";
|
"set tree_method to 'exact'.";
|
||||||
tparam_.tree_method = TreeMethod::kApprox;
|
tparam_.tree_method = TreeMethod::kApprox;
|
||||||
} else {
|
} else {
|
||||||
tparam_.tree_method = TreeMethod::kExact;
|
tparam_.tree_method = TreeMethod::kExact;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user