Hello,
I think there’s a small code typo in “4.1 Decision Trees”: at the code block where decision_tree_model
is set, the max_depth
parameter should be 4, and not 3, right? This according to the analysis that identified 4 as the best value, and also according to the explanation in the text block right above it.
Also, in " 2. One-hot encoding using Pandas", we are told “First we will remove the binary variables, because one-hot encoding them would do nothing to them.”… but we are not, aren’t we? We’re one-hot encoding the variables ‘Sex’ and ‘ExerciseAngina’ too.
Thank you for the very interesting course!