# tfdf.py_tree.condition.AbstractCondition

<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#L34-L67) |

Generic condition.

#### View aliases


**Main aliases**

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

<br />

    tfdf.py_tree.condition.AbstractCondition(
        missing_evaluation: Optional[bool], split_score: Optional[float] = None
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `missing_evaluation` | Result of the evaluation of the condition if the feature is missing. If None, a feature cannot be missing or a specific method run during inference to handle missing values. |
| `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#L58-L62)

    @abc.abstractmethod
    features() -> List[https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/inspector/SimpleColumnSpec]

List of features used to evaluate the condition.