Decision Tree

hard· Machine Learningruns: 0

Implement a CART-style decision tree classifier from scratch. At each node, pick the feature and threshold that maximize the reduction in Gini impurity. Recurse until a depth limit, a minimum sample threshold, or a pure node is reached. Predict by walking the tree.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.