✅ Quiz M5.03#
Question
When fitting a decision tree regressor in scikit-learn, the predicted values on a leaf correspond to:
a) the median of the training samples at this node
b) the mean of the training samples at this node
c) the most frequent value of the training samples at this node
Select a single answer
Question
Decision tree regressors can predict:
a) any values, including values larger or smaller than those observed in
y_train
;b) only values in the range from
np.min(y_train)
tonp.max(y_train)
.
Select a single answer
Question
The predictions of a tree regressor correspond to:
a) a piecewise-linear function
b) a piecewise-constant function
c) a piecewise-cubic function
Select a single answer