Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AI-courses
AI Autonomous Systems ML
Commits
cff563c3
Commit
cff563c3
authored
Nov 17, 2021
by
Florent Chatelain
Browse files
fix typo
parent
b6b5a9ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
notebooks/9_Trees_Boosting/N2_a_Regression_tree.ipynb
View file @
cff563c3
...
...
@@ -104,17 +104,17 @@

%% Cell type:markdown id: tags:
## Questions 4
-
How many different prediction values are defined by a tree of depth
N
?
-
What is the average number of samples from the training set in each leave? (let
N
be the size of the training set)
-
How many different prediction values are defined by a tree of depth
$d$
?
-
What is the average number of samples from the training set in each leave? (let
$N$
be the size of the training set)
%% Cell type:markdown id: tags:
## Setting the depth by using cross validation
https://scikit-learn.org/stable/modules/model_evaluation.html
Recall the sklearn documention to assess the
[
performance of a model (`model_evaluation` module)
](
https://scikit-learn.org/stable/modules/model_evaluation.html
)
.
%% Cell type:code id: tags:
```
python
from
sklearn.model_selection
import
ShuffleSplit
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment