<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/optimizers/__init__.py#L111-L129) |

#### View aliases


**Main aliases**

[`tf.keras.optimizers.legacy.Adam`](https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/legacy/Adagrad), [`tf.keras.optimizers.legacy.Ftrl`](https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/legacy/Adagrad), [`tf.keras.optimizers.legacy.Optimizer`](https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/legacy/Adagrad), [`tf.keras.optimizers.legacy.RMSprop`](https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/legacy/Adagrad), [`tf.keras.optimizers.legacy.SGD`](https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/legacy/Adagrad)

<br />

    tf.keras.optimizers.legacy.Adagrad(
        *args, **kwargs
    )

### Used in the notebooks

| Used in the guide | Used in the tutorials |
|---|---|
| - [Migration examples: Canned Estimators](https://www.tensorflow.org/guide/migrate/canned_estimators) - [Debug a TensorFlow 2 migrated training pipeline](https://www.tensorflow.org/guide/migrate/migration_debugging) - [Migrate multi-worker CPU/GPU training](https://www.tensorflow.org/guide/migrate/multi_worker_cpu_gpu_training) | - [Parameter server training with ParameterServerStrategy](https://www.tensorflow.org/tutorials/distribute/parameter_server_training) - [Uncertainty-aware Deep Learning with SNGP](https://www.tensorflow.org/tutorials/understanding/sngp) - [TensorFlow Constrained Optimization Example Using CelebA Dataset](https://www.tensorflow.org/responsible_ai/fairness_indicators/tutorials/Fairness_Indicators_TFCO_CelebA_Case_Study) - [Introduction to Fairness Indicators](https://www.tensorflow.org/responsible_ai/fairness_indicators/tutorials/Fairness_Indicators_Example_Colab) - [Unified Embedding Tables (UET)](https://www.tensorflow.org/recommenders/examples/uet) |