The information was there all along
Machine Learning · from Decision trees
DecisionTreeClassifierexport_textginimax_depthfeature_importances_greedy splittingPutting the kettle on…
Starting up…
Exercise 2
The information was there all along. On that same depth-2 tree, return the distinct predicted probabilities for the positive class, sorted and rounded to 3 places — one per leaf.
your answer
stuck? the lesson behind it
Decision trees
A program made of if-statements — that predicts "on time" in every single leaf