# Module: tf.estimator

<br />

Estimator: High level tools for working with models.

## Modules

[`experimental`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/experimental) module: Public API for tf.estimator.experimental namespace.

[`export`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/export) module: All public utility methods for exporting Estimator to SavedModel.

## Classes

[`class BaselineClassifier`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/BaselineClassifier): A classifier that can establish a simple baseline. (deprecated)

[`class BaselineEstimator`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/BaselineEstimator): An estimator that can establish a simple baseline. (deprecated)

[`class BaselineRegressor`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/BaselineRegressor): A regressor that can establish a simple baseline. (deprecated)

[`class BestExporter`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/BestExporter): This class exports the serving graph and checkpoints of the best models. (deprecated)

[`class BinaryClassHead`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/BinaryClassHead): Creates a `Head` for single label binary classification. (deprecated)

[`class CheckpointSaverHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/CheckpointSaverHook): Saves checkpoints every N steps or seconds. (deprecated)

[`class CheckpointSaverListener`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/CheckpointSaverListener): Interface for listeners that take action before or after checkpoint save. (deprecated)

[`class DNNClassifier`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/DNNClassifier): A classifier for TensorFlow DNN models. (deprecated)

[`class DNNEstimator`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/DNNEstimator): An estimator for TensorFlow DNN models with user-specified head. (deprecated)

[`class DNNLinearCombinedClassifier`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/DNNLinearCombinedClassifier): An estimator for TensorFlow Linear and DNN joined classification models. (deprecated)

[`class DNNLinearCombinedEstimator`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/DNNLinearCombinedEstimator): An estimator for TensorFlow Linear and DNN joined models with custom head. (deprecated)

[`class DNNLinearCombinedRegressor`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/DNNLinearCombinedRegressor): An estimator for TensorFlow Linear and DNN joined models for regression. (deprecated)

[`class DNNRegressor`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/DNNRegressor): A regressor for TensorFlow DNN models. (deprecated)

[`class Estimator`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/Estimator): Estimator class to train and evaluate TensorFlow models. (deprecated)

[`class EstimatorSpec`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/EstimatorSpec): Ops and objects returned from a `model_fn` and passed to an `Estimator`. (deprecated)

[`class EvalSpec`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/EvalSpec): Configuration for the "eval" part for the `train_and_evaluate` call. (deprecated)

[`class Exporter`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/Exporter): A class representing a type of model export. (deprecated)

[`class FeedFnHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/FeedFnHook): Runs `feed_fn` and sets the `feed_dict` accordingly. (deprecated)

[`class FinalExporter`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/FinalExporter): This class exports the serving graph and checkpoints at the end. (deprecated)

[`class FinalOpsHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/FinalOpsHook): A hook which evaluates `Tensors` at the end of a session. (deprecated)

[`class GlobalStepWaiterHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/GlobalStepWaiterHook): Delays execution until global step reaches `wait_until_step`. (deprecated)

[`class Head`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/Head): Interface for the head/top of a model. (deprecated)

[`class LatestExporter`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/LatestExporter): This class regularly exports the serving graph and checkpoints. (deprecated)

[`class LinearClassifier`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/LinearClassifier): Linear classifier model. (deprecated)

[`class LinearEstimator`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/LinearEstimator): An estimator for TensorFlow linear models with user-specified head. (deprecated)

[`class LinearRegressor`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/LinearRegressor): An estimator for TensorFlow Linear regression problems. (deprecated)

[`class LoggingTensorHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/LoggingTensorHook): Prints the given tensors every N local steps, every N seconds, or at end. (deprecated)

[`class LogisticRegressionHead`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/LogisticRegressionHead): Creates a `Head` for logistic regression. (deprecated)

[`class ModeKeys`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/ModeKeys): Standard names for Estimator model modes. (deprecated)

[`class MultiClassHead`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/MultiClassHead): Creates a `Head` for multi class classification. (deprecated)

[`class MultiHead`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/MultiHead): Creates a `Head` for multi-objective learning. (deprecated)

[`class MultiLabelHead`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/MultiLabelHead): Creates a `Head` for multi-label classification. (deprecated)

[`class NanLossDuringTrainingError`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/NanLossDuringTrainingError): DEPRECATED FUNCTION

[`class NanTensorHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/NanTensorHook): Monitors the loss tensor and stops training if loss is NaN. (deprecated)

[`class PoissonRegressionHead`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/PoissonRegressionHead): Creates a `Head` for poisson regression using [`tf.nn.log_poisson_loss`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/nn/log_poisson_loss). (deprecated)

[`class ProfilerHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/ProfilerHook): Captures CPU/GPU profiling information every N steps or seconds. (deprecated)

[`class RegressionHead`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/RegressionHead): Creates a `Head` for regression using the `mean_squared_error` loss. (deprecated)

[`class RunConfig`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/RunConfig): This class specifies the configurations for an `Estimator` run. (deprecated)

[`class SecondOrStepTimer`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/SecondOrStepTimer): Timer that triggers at most once every N seconds or once every N steps. (deprecated)

[`class SessionRunArgs`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/SessionRunArgs): Represents arguments to be added to a `Session.run()` call. (deprecated)

[`class SessionRunContext`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/SessionRunContext): Provides information about the `session.run()` call being made. (deprecated)

[`class SessionRunHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/SessionRunHook): Hook to extend calls to MonitoredSession.run(). (deprecated)

[`class SessionRunValues`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/SessionRunValues): Contains the results of `Session.run()`. (deprecated)

[`class StepCounterHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/StepCounterHook): Hook that counts steps per second. (deprecated)

[`class StopAtStepHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/StopAtStepHook): Hook that requests stop at a specified step. (deprecated)

[`class SummarySaverHook`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/SummarySaverHook): Saves summaries every N steps. (deprecated)

[`class TrainSpec`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/TrainSpec): Configuration for the "train" part for the `train_and_evaluate` call. (deprecated)

[`class VocabInfo`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/VocabInfo): Vocabulary information for warm-starting. (deprecated)

[`class WarmStartSettings`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/WarmStartSettings): Settings for warm-starting in `tf.estimator.Estimators`. (deprecated)

## Functions

[`add_metrics(...)`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/add_metrics): Creates a new [`tf.estimator.Estimator`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/Estimator) which has given metrics. (deprecated)

[`classifier_parse_example_spec(...)`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/classifier_parse_example_spec): Generates parsing spec for tf.parse_example to be used with classifiers. (deprecated)

[`regressor_parse_example_spec(...)`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/regressor_parse_example_spec): Generates parsing spec for tf.parse_example to be used with regressors. (deprecated)

[`train_and_evaluate(...)`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/estimator/train_and_evaluate): Train and evaluate the `estimator`. (deprecated)