# tfdf.py_tree.node.ScanStructureAccumulatorContainsInt

<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/node.py#L66-L127) |

Contains the accumulated results for "contains" conditions.

    tfdf.py_tree.node.ScanStructureAccumulatorContainsInt()

## Methods

### `add_allowed`

[View source](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/node.py#L81-L85)

    add_allowed(
        values: List[int]
    ) -> None

Adds a set of allowed values.

### `add_not_allowed`

[View source](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/node.py#L87-L91)

    add_not_allowed(
        values: List[int]
    ) -> None

Adds a set of not allowed values.

### `get_global_imutation_and_num_unique_values`

[View source](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/node.py#L97-L127)

    get_global_imutation_and_num_unique_values() -> Tuple[Optional[int], Optional[int]]

Gets the missing replacement value compatible with global imp.

opt.

If global imputation optimization is not possible, returns None, None.

<br />

<br />

<br />

| Returns ||
|---|---|
| The missing replacement value and number of dictionary items. Returns None, None is global imputation optimization is not possible. ||

<br />