# Module: tfdf.py_tree

<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/__init__.py) |

Decision trees stored as python objects.

To be used with the model inspector and model builder.

## Modules

[`condition`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/condition) module: Conditions / splits for non-leaf nodes.

[`dataspec`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/dataspec) module: Utility for the dataset specification.

[`node`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/node) module: Nodes (leaf and non-leafs) in a tree.

[`objective`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/objective) module: Definition of a model objective.

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

[`value`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/value) module: The value/prediction/output of a leaf node.