# tf_privacy.TreeResidualSumQuery.GlobalState

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/privacy/blob/v0.9.0/privacy/privacy/dp_query/tree_aggregation_query.py#L317-L329) |

Class defining global state for Tree sum queries.

    tf_privacy.TreeResidualSumQuery.GlobalState(
        tree_state, clip_value, previous_tree_noise
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `tree_state` | Current state of noise tree keeping track of current leaf and each level state. |
| `clip_value` | The clipping value to be passed to clip_fn. |
| `previous_tree_noise` | Cumulative noise by tree aggregation from the previous time the query is called on a sample. |

<br />