Skip to content
ml-recall

#decision-tree

8 questions from Decision Trees & Ensembles

Timed test

8 questions · 8 min · score and explanations at the end

Take a test
Q 1 / 8Score 0 / 0

Question 1: Short answer

easyAI-checkedDecision Trees & Ensembles

A depth-2 decision tree for SMS spam uses binary word features (1 = the word occurs). The training counts in each leaf are given as [ham, spam]:

  • call = 0 and txt = 0 → [3649, 229]
  • call = 0 and txt = 1 → [10, 120]
  • call = 1 and me = 0 → [108, 262]
  • call = 1 and me = 1 → [76, 3]

The message "Call me" reaches the leaf for call = 1, me = 1, so the tree predicts "ham". If the tree reports its certainty as the fraction of training examples in the leaf that share the predicted class, how certain is it?

a probability, 3 decimals