βœ… Quiz M5.03ΒΆ

Question

When fitting a decision tree regressor in scikit-learn, the predicted values at a leaf corresponds 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

Question

Decision trees are capable of:

  • a) interpolating and extrapolating

  • b) only interpolating

  • c) only extrapolating

Question

The predictions of a tree regressor corresponds to:

  • a) a piecewise-linear function

  • b) a piecewise-constant function

  • c) a piecewise-cubic function