Glossary term
Glossary term
Foundations
In a decision tree, a condition that tests for the presence of one item in a set of items. For example, the following is an in-set condition:
house-style in [tudor, colonial, cape]
During inference, if the value of the house-style feature is tudor or colonial or cape, then this condition evaluates to Yes. If the value of the house-style feature is something else (for example, ranch), then this condition evaluates to No.
In-set conditions usually lead to more efficient decision trees than conditions that test one-hot encoded features.
Created for this library
A risk modeling team uses an in-set condition to write tree splits like region in {EU, UK} which collapse several enum values into a single branch.
A churn team uses in-set conditions for tree splits over plan type so the model handles a small set of categorical values cleanly.
A marketing analytics team uses in-set conditions in its segmentation tree to group several markets that behave similarly.
Definition source: Google for Developers Machine Learning Glossary | Creative Commons Attribution 4.0 License