@@ -191,7 +191,7 @@ A multi-output problem is a supervised learning problem with several outputs
191
191
to predict, that is when Y is a 2d array of size ``[n_samples, n_outputs] ``.
192
192
193
193
When there is no correlation between the outputs, a very simple way to solve
194
- this kind of problems is to build n independent models, i.e. one for each
194
+ this kind of problem is to build n independent models, i.e. one for each
195
195
output, and then to use those models to independently predict each one of the n
196
196
outputs. However, because it is likely that the output values related to the
197
197
same input are themselves correlated, an often better way is to build a single
@@ -200,7 +200,7 @@ lower training time since only a single estimator is built. Second, the
200
200
generalization accuracy of the resulting estimator may often be increased.
201
201
202
202
With regard to decision trees, this strategy can readily be used to support
203
- multi-output problems. This indeed amounts to :
203
+ multi-output problems. This requires the following changes :
204
204
205
205
- Store n output values in leaves, instead of 1;
206
206
- Use splitting criteria that compute the average reduction across all
@@ -215,7 +215,16 @@ of size ``[n_samples, n_outputs]`` then the resulting estimator will:
215
215
- Output a list of n_output arrays of class probabilities upon
216
216
``predict_proba ``.
217
217
218
- The use of multi-output trees is demonstrated in
218
+ The use of multi-output trees for regression is demonstrated in
219
+ :ref: `example_tree_plot_tree_regression_multioutput.py `. In this example, the input
220
+ X is a single real value and the outputs Y are the sine and cosine of X.
221
+
222
+ .. figure :: ../auto_examples/tree/images/plot_tree_regression_multioutput_1.png
223
+ :target: ../auto_examples/tree/plot_tree_regression_multioutput.html
224
+ :scale: 75
225
+ :align: center
226
+
227
+ The use of multi-output trees for classification is demonstrated in
219
228
:ref: `example_ensemble_plot_forest_multioutput.py `. In this example, the inputs
220
229
X are the pixels of the upper half of faces and the outputs Y are the pixels of
221
230
the lower half of those faces.
@@ -227,6 +236,7 @@ the lower half of those faces.
227
236
228
237
.. topic :: Examples:
229
238
239
+ * :ref: `example_tree_plot_tree_regression_multioutput.py `
230
240
* :ref: `example_ensemble_plot_forest_multioutput.py `
231
241
232
242
0 commit comments