Home › Glossary › Fundamentals › Condition

Intermediate · Fundamentals

Condition

Visual diagram · (in preparation) · Math · (in preparation) · Worked example · 3 difficulty levels.

TL;DR. In decision trees, a test performed at a node to split the data based on a feature's value.

Technical Definition

In decision trees, a test performed at a node to split the data based on a feature's value.

How it works

A condition, also known as a split or test, is a decision point within a decision tree. At each condition node, the algorithm evaluates a specific feature against a certain value to determine which branch to follow. For example, a condition might be 'Is the temperature greater than 20 degrees Celsius?'. The outcome of this test directs the data down a specific path in the tree, eventually leading to a prediction at a leaf node.

Related Concepts

  • Node — A fundamental component of data structures like trees, containing data and links to other nodes.
  • Decision tree — A decision tree is a supervised learning model that uses a tree-like structure of decisions and their possible consequences.

Further Reading

  • Google ML Glossary