# Module: tfdf.py_tree.node

<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) |

Nodes (leaf and non-leafs) in a tree.

## Classes

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

[`class AbstractNode`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node/AbstractNode): A decision tree node.

[`class AbstractValue`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node/AbstractValue): A generic value/prediction/output.

[`class LeafNode`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node/LeafNode): A leaf node i.e. the node containing a prediction/value/output.

[`class NonLeafNode`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node/NonLeafNode): A non-leaf node i.e.

[`class ScanStructureAccumulator`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node/ScanStructureAccumulator): Contains the accumulated results from the "scan_structure" method.

[`class ScanStructureAccumulatorContainsInt`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node/ScanStructureAccumulatorContainsInt): Contains the accumulated results for "contains" conditions.

[`class defaultdict`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node/defaultdict): defaultdict(default_factory\[, ...\]) --\> dict with default factory

## Functions

[`core_node_to_node(...)`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node/core_node_to_node): Converts a core node (proto format) into a python node.

[`node_to_core_node(...)`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node/node_to_core_node): Converts a python node into a core node (proto format).