@@ -44,12 +44,9 @@ is the product of interaction between :math:`x_1`, :math:`x_7`, and
44
44
Source(source, format='png').render('../_static/feature_interaction_illustration1', view=False)
45
45
Source(source, format='svg').render('../_static/feature_interaction_illustration1', view=False)
46
46
47
- .. raw :: html
48
-
49
- <p >
50
- <img src =" ../_static/feature_interaction_illustration1.svg"
51
- onerror =" this.src='../_static/feature_interaction_illustration1.png'; this.onerror=null;" >
52
- </p >
47
+ .. figure :: ../_static/feature_interaction_illustration1.svg
48
+ :align: center
49
+ :figwidth: 80 %
53
50
54
51
When the tree depth is larger than one, many variables interact on
55
52
the sole basis of minimizing training loss, and the resulting decision tree may
@@ -130,14 +127,12 @@ first and second constraints (``[0, 1]``, ``[2, 3, 4]``).
130
127
Source(source, format='png').render('../_static/feature_interaction_illustration3', view=False)
131
128
Source(source, format='svg').render('../_static/feature_interaction_illustration3', view=False)
132
129
133
- .. raw :: html
134
130
135
- <p >
136
- <img src =" ../_static/feature_interaction_illustration2.svg"
137
- onerror =" this.src='../_static/feature_interaction_illustration2.png'; this.onerror=null;" >
138
- <img src =" ../_static/feature_interaction_illustration3.svg"
139
- onerror =" this.src='../_static/feature_interaction_illustration3.png'; this.onerror=null;" >
140
- </p >
131
+ .. figure :: ../_static/feature_interaction_illustration2.svg
132
+ :align: left
133
+
134
+ .. figure :: ../_static/feature_interaction_illustration3.svg
135
+
141
136
142
137
****************************************************
143
138
Enforcing Feature Interaction Constraints in XGBoost
0 commit comments