Skip to content

Commit 6b3b4c2

Browse files
committed
Add line breaks.
1 parent c8edbb7 commit 6b3b4c2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

_episodes/06-random-forest.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ for i, estimator in enumerate(mdl.estimators_):
3535
![](../fig/section6-fig1.png){: width="900px"}
3636

3737
> ## Question
38-
> a) When specifying the model, we set `max_features` to `1`. All of the trees make decisions using both features, so it appears that our model is not respecting the argument. What is the explanation for this inconsistency?
39-
> b) What would you expect to see with a `max_features` of `1` AND a `max_depth` of `1`?
40-
> c) Repeat the plots with the new argument to check your answer to b. What do you see with respect to Age? Why?
38+
> a) When specifying the model, we set `max_features` to `1`. All of the trees make decisions using both features, so it appears that our model is not respecting the argument. What is the explanation for this inconsistency?
39+
> b) What would you expect to see with a `max_features` of `1` AND a `max_depth` of `1`?
40+
> c) Repeat the plots with the new argument to check your answer to b. What do you see with respect to Age? Why?
4141
> > ## Answer
42-
> > a) If it was true that setting `max_features=1` as an argument led to trees with a single variable, we would not see the trees in our figure (which all make decisions based on both features). The explanation is that features are being limited at each split, not at the model level.
43-
> > b) Setting `max_features` to `1` limits our trees to a single split. We now see two sets of trees, some restricted to Acute Physiology Score and some restricted to Age.
44-
> > c) Our trees decided against splitting on Age. The model was unable to find a single Age that led to improvement (based on its optimisation criteria).
42+
> > a) If it was true that setting `max_features=1` as an argument led to trees with a single variable, we would not see the trees in our figure (which all make decisions based on both features). The explanation is that features are being limited at each split, not at the model level.
43+
> > b) Setting `max_features` to `1` limits our trees to a single split. We now see two sets of trees, some restricted to Acute Physiology Score and some restricted to Age.
44+
> > c) Our trees decided against splitting on Age. The model was unable to find a single Age that led to improvement (based on its optimisation criteria).
4545
> {: .solution}
4646
{: .challenge}
4747

0 commit comments

Comments
 (0)