A decision tree is a decision support tool that uses a tree-like model of decisions and their possible consequences, including chance event outcomes, resource costs, and utility.
The following lines of Python code create a decision tree classifier mode and print its accuracy statistics: