A leaf is a terminal node in a decision tree that provides the model’s output, such as a predicted class, value, or distribution. Inference follows decision paths from the root through internal conditions until reaching a leaf.
Any endpoint in a decision tree. Unlike a condition, a leaf doesn't perform a test. Rather, a leaf is a possible prediction. A leaf is also the terminal node of an inference path. For example, the following decision tree contains three leaves: !A decision tree with two conditions leading to three leaves. See Decision trees in the Decision Forests course for more information.