Fit a depth-2 tree and return the set of distinct classes it actually predicts…
Machine Learning · from Decision trees
DecisionTreeClassifierexport_textginimax_depthfeature_importances_greedy splittingPutting the kettle on…
Starting up…
Exercise 1
Fit a depth-2 tree and return the set of distinct classes it actually predicts on the test set, as a sorted list of ints. There should be only one.
your answer
stuck? the lesson behind it
Decision trees
A program made of if-statements — that predicts "on time" in every single leaf