# tfdf.py_tree.condition.NumericalSparseObliqueCondition

<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#L230-L266) |

Condition of the form "attributes \* weights \>= threshold".

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

    tfdf.py_tree.condition.NumericalSparseObliqueCondition(
        features: List[https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/inspector/SimpleColumnSpec],
        weights: List[float],
        threshold: float,
        missing_evaluation: Optional[bool],
        split_score: Optional[float] = None
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `missing_evaluation` | <br /> <br /> |
| `split_score` | <br /> <br /> |
| `threshold` | <br /> <br /> |
| `weights` | <br /> <br /> |

<br />

## Methods

### `features`

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

    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#L253-L258)

    __eq__(
        other
    )

Return self==value.