# tfdf.py_tree.value.RegressionValue

<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/value.py#L75-L124) |

The regression value of a regressive tree.

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

    tfdf.py_tree.value.RegressionValue(
        value: float,
        num_examples: Optional[float] = 1.0,
        standard_deviation: Optional[float] = None
    )

Can also be used in gradient-boosted-trees for classification and ranking.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `value` | Value of the tree. The semantic depends on the tree: For Random Forests, this value is a regressive value (in the same unit as the label). For classification and ranking GBDTs, this value is a loggit. |
| `standard_deviation` | Optional standard deviation attached to the value. |
| `num_examples` | Number of example in the node. |

<br />

## Methods

### `__eq__`

[View source](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/value.py#L117-L124)

    __eq__(
        other
    )

Return self==value.