# Module: tfdf.py_tree.objective

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

Definition of a model objective.

An objective contains a task (e.g. classification), a label column name, and
objective specific meta-data e.g. the number of classes for a classification
objective.

## Classes

[`class AbstractObjective`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/objective/AbstractObjective): Abstract objective.

[`class AbstractUpliftObjective`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/objective/AbstractUpliftObjective): Objective for Uplift.

[`class CategoricalUpliftObjective`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/objective/CategoricalUpliftObjective): Objective for Categorical Uplift.

[`class ClassificationObjective`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/objective/ClassificationObjective): Objective for classification.

[`class NumericalUpliftObjective`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/objective/NumericalUpliftObjective): Objective for Numerical Uplift.

[`class RankingObjective`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/objective/RankingObjective): Objective for ranking.

[`class RegressionObjective`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/objective/RegressionObjective): Objective for regression.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| Task | Instance of `google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper` |

<br />