Update documents and tests. (#7659)

* Revise documents after recent refactoring and cat support.
* Add tests for behavior of max_depth and max_leaves.
This commit is contained in:
Jiaming Yuan
2022-02-26 03:57:47 +08:00
committed by GitHub
parent 5eed2990ad
commit 18a4af63aa
7 changed files with 142 additions and 44 deletions

View File

@@ -129,7 +129,7 @@ first and second constraints (``[0, 1]``, ``[2, 3, 4]``).
.. |fig1| image:: ../_static/feature_interaction_illustration2.svg
:scale: 7%
:align: middle
:align: middle
.. |fig2| image:: ../_static/feature_interaction_illustration3.svg
:scale: 7%
@@ -174,11 +174,6 @@ parameter:
num_boost_round = 1000, evals = evallist,
early_stopping_rounds = 10)
**Choice of tree construction algorithm**. To use feature interaction constraints, be sure
to set the ``tree_method`` parameter to one of the following: ``exact``, ``hist``,
``approx`` or ``gpu_hist``. Support for ``gpu_hist`` and ``approx`` is added only in
1.0.0.
**************
Advanced topic
**************