# tf.keras.optimizers.Adadelta

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v2.7.0/keras/optimizer_v2/adadelta.py#L26-L147) |

Optimizer that implements the Adadelta algorithm.

Inherits From: [`Optimizer`](https://www.tensorflow.org/versions/r2.7/api_docs/python/tf/keras/optimizers/Optimizer)

#### View aliases


**Main aliases**

[`tf.optimizers.Adadelta`](https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/experimental/Adadelta)
**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.keras.optimizers.Adadelta`](https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/legacy/Adadelta)

<br />

    tf.keras.optimizers.Adadelta(
        learning_rate=0.001,
        rho=0.95,
        epsilon=1e-07,
        name='Adadelta',
        **kwargs
    )

Adadelta optimization is a stochastic gradient descent method that is based on
adaptive learning rate per dimension to address two drawbacks:

- The continual decay of learning rates throughout training.
- The need for a manually selected global learning rate.

Adadelta is a more robust extension of Adagrad that adapts learning rates
based on a moving window of gradient updates, instead of accumulating all
past gradients. This way, Adadelta continues learning even when many updates
have been done. Compared to Adagrad, in the original version of Adadelta you
don't have to set an initial learning rate. In this version, the initial
learning rate can be set, as in most other Keras optimizers.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `learning_rate` | Initial value for the learning rate: either a floating point value, or a [`tf.keras.optimizers.schedules.LearningRateSchedule`](https://www.tensorflow.org/versions/r2.7/api_docs/python/tf/keras/optimizers/schedules/LearningRateSchedule) instance. Defaults to 0.001. Note that `Adadelta` tends to benefit from higher initial learning rate values compared to other optimizers. To match the exact form in the original paper, use 1.0. |
| `rho` | A `Tensor` or a floating point value. The decay rate. |
| `epsilon` | Small floating point value used to maintain numerical stability. |
| `name` | Optional name prefix for the operations created when applying gradients. Defaults to `"Adadelta"`. |
| `**kwargs` | Keyword arguments. Allowed to be one of `"clipnorm"` or `"clipvalue"`. `"clipnorm"` (float) clips gradients by norm and represents the maximum norm of each parameter; `"clipvalue"` (float) clips gradient by value and represents the maximum absolute value of each parameter. |

<br />

<br />

<br />

| ## Reference ||
|---|---|
| <br /> - [Zeiler, 2012](http://arxiv.org/abs/1212.5701) ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | in case of any invalid argument. |

<br />