From 4f26053b09737e191a7993285aed022be67a322a Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Thu, 6 Dec 2018 19:38:40 -0800 Subject: [PATCH] Fix typo in Feature Interaction Constraints tutorial (#3975) --- doc/tutorials/feature_interaction_constraint.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/tutorials/feature_interaction_constraint.rst b/doc/tutorials/feature_interaction_constraint.rst index dcd653d70..947778427 100644 --- a/doc/tutorials/feature_interaction_constraint.rst +++ b/doc/tutorials/feature_interaction_constraint.rst @@ -143,11 +143,11 @@ first and second constraints (``[0, 1]``, ``[2, 3, 4]``). Enforcing Feature Interaction Constraints in XGBoost **************************************************** -It is very simple to enforce monotonicity constraints in XGBoost. Here we will +It is very simple to enforce feature interaction constraints in XGBoost. Here we will give an example using Python, but the same general idea generalizes to other platforms. -Suppose the following code fits your model without monotonicity constraints: +Suppose the following code fits your model without feature interaction constraints: .. code-block:: python @@ -155,7 +155,7 @@ Suppose the following code fits your model without monotonicity constraints: num_boost_round = 1000, evals = evallist, early_stopping_rounds = 10) -Then fitting with monotonicity constraints only requires adding a single +Then fitting with feature interaction constraints only requires adding a single parameter: .. code-block:: python