From e0094d996e47e16df3a493b85a927a23985b5356 Mon Sep 17 00:00:00 2001 From: Nan Zhu Date: Wed, 30 Jan 2019 12:53:44 -0800 Subject: [PATCH] fix doc about max_depth (#4078) * fix doc * Update doc/parameter.rst Co-Authored-By: CodingCat --- doc/parameter.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/parameter.rst b/doc/parameter.rst index 325352f19..d56ab130c 100644 --- a/doc/parameter.rst +++ b/doc/parameter.rst @@ -64,8 +64,8 @@ Parameters for Tree Booster * ``max_depth`` [default=6] - - Maximum depth of a tree. Increasing this value will make the model more complex and more likely to overfit. 0 indicates no limit. Note that limit is required when ``grow_policy`` is set of ``depthwise``. - - range: [0,∞] + - Maximum depth of a tree. Increasing this value will make the model more complex and more likely to overfit. 0 is only accepted in ``lossguided`` growing policy when tree_method is set as ``hist`` and it indicates no limit on depth. Beware that XGBoost aggressively consumes memory when training a deep tree. + - range: [0,∞] (0 is only accepted in ``lossguided`` growing policy when tree_method is set as ``hist``) * ``min_child_weight`` [default=1]