AI Glossary

Decision Tree

A decision tree predicts by following a series of tests on input features, ending at a leaf with a class prediction or numerical value. Training chooses the splits from examples; the resulting paths can be read as if-then rules.

· Updated · Chain of Thought

Imagine a small classifier trained to predict which support queue should receive a ticket. Its first test asks whether the ticket reports a payment problem. If yes, it predicts billing. Otherwise, a second test asks whether the customer can sign in, leading to technical support or general support. This is an illustrative tree, not a validated routing policy.

Training chooses tests that improve a criterion such as class purity or prediction error. A leaf can store a class distribution or a regression value; it need not represent certainty. Reading a path explains how this model produced a prediction, not what caused the customer’s problem.

Very deep trees can fit noise and become difficult to inspect. Limit depth or prune branches using validation, and compare with ensembles such as gradient boosting. The practical value is a traceable baseline: teams can see which features a prediction uses, then test whether those rules hold on new examples. Readability alone does not establish accuracy.

Follow feature tests to a leaf predictionA ticket reporting a payment problem goes to a billing leaf. Otherwise the classifier tests whether the customer can sign in: no leads to technical support, yes leads to general support. Leaves are model predictions, not verified explanations of the underlying problem. Follow feature tests to a leaf predictionAn illustrative support-queue classifier; learned rules still need validation Payment problem?YesNoPredict: BillingCustomer can sign in?NoYesTechnical supportGeneral support
A teaching example of feature tests and leaves, as described in scikit-learn’s tree guide. The branches illustrate predictions, not a production routing policy. Download the image

Sources

Go deeper