A decision tree is a type of supervised learning algorithm that is commonly used in machine learning to model and predict outcomes based on input data.
They provide comprehensible insights into the decision logic, decision trees are especially helpful for tasks involving categorisation and regression. They are proficient with both numerical and categorical data, and they can easily adapt to a variety of datasets thanks to their autonomous feature selection capability.
This code takes a CSV file containing information about students and uses it to find the most important factors to getting a GPA above 3.5. This is then plotted as a decision tree and analyzed.