Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
ML_Supervised
·
Module 7
Decision Trees and Random Forests from Scratch
1
Splitting Decisions: Gini & Information Gain
Implement Gini impurity and information gain calculations for finding optimal splits.
2
Finding the Best Split in a Dataset
Implement a function to find the best split for a dataset by iterating through features and values.
3
Recursive Decision Tree Construction
Build a recursive function to construct a decision tree with stopping criteria (e.g., max depth, min samples).
4
Bagging from Scratch
Implement bootstrap sampling ('bagging') from scratch.
5
Random Forest Classifier: Bagging and Feature Randomness
Build a Random Forest classifier by training multiple decision trees on bootstrapped samples with random feature subsets.
Random Forest Prediction: Aggregating Votes
Implement a prediction function that aggregates votes from all trees in the forest.
7
OOB Error Estimation
Implement out-of-bag (OOB) error estimation as an alternative to a validation set.
Previous module
Support Vector Machines from Scratch
Next module
Boosting Algorithms from Scratch