Implement Bagging Classifier with Decision Stumps
Medium · Solved in NumPy · Machine learning coding practice
Problem
Implement a Bagging (Bootstrap Aggregating) classifier that uses decision stumps as base estimators. A decision stump is a one-level decision tree that makes predictions based on a single feature and threshold.
Topics: ensemble-methods, bagging, decision-trees, bootstrap-sampling, machine-learning, classification
The full statement, worked examples, hints and the test suite are available once you sign in. You can then solve Implement Bagging Classifier with Decision Stumps in the browser and run it against the tests.
Related problems
- Score Allowed Candidate Tokens Easy
- Optimizers: From Momentum to Adam Medium
- AdamW Optimizer Medium
- Basic KV Cache: Prefill and Decode Medium
- Binary Vector Scoring with Lookup Tables Medium
- Bradley Terry Ranking Medium