You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Decision trees are one of the most intuitive and widely used machine learning algorithms. They model decisions as a tree-like structure of rules, making them easy to interpret and visualise. Random forests extend decision trees into a powerful ensemble method that reduces overfitting and improves accuracy.
A decision tree is a flowchart-like structure where:
The algorithm recursively splits the data by choosing the feature and threshold that best separates the classes (or reduces prediction error). At each node, it asks: "Which feature split produces the purest subgroups?"
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.