# tfdf.py_tree.condition.CategoricalSetContainsCondition

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/condition.py#L195-L227) |

Condition of the form "attribute intersect \[...set of items...\]!=empty".

Inherits From: [`AbstractCondition`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/condition/AbstractCondition)

    tfdf.py_tree.condition.CategoricalSetContainsCondition(
        feature: https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/inspector/SimpleColumnSpec,
        mask: Union[List[str], List[int]],
        missing_evaluation: Optional[bool],
        split_score: Optional[float] = None
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `feature` | <br /> <br /> |
| `mask` | <br /> <br /> |
| `missing_evaluation` | <br /> <br /> |
| `split_score` | <br /> <br /> |

<br />

## Methods

### `features`

[View source](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/condition.py#L208-L209)

    features()

List of features used to evaluate the condition.

### `__eq__`

[View source](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/condition.py#L216-L219)

    __eq__(
        other
    )

Return self==value.