# tfdf.py_tree.value.ProbabilityValue

<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#L37-L72) |

A probability distribution value.

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

    tfdf.py_tree.value.ProbabilityValue(
        probability: List[float], num_examples: Optional[float] = 1.0
    )

Used for classification trees.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `probability` | An array of probability of the label classes i.e. the i-th value is the probability of the "label_value_idx_to_value(..., i)" class. Note that the first value is reserved for the Out-of-vocabulary |
| `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#L66-L72)

    __eq__(
        other
    )

Return self==value.