fix docstring example indentation as well
This commit is contained in:
parent
32e0aa9fcb
commit
f4365dab94
|
@ -451,7 +451,7 @@ Applies inverse time decay to an optimiser, i.e., the effective step size at ite
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
```julia
|
```julia
|
||||||
Optimiser(InvDecay(..), Opt(..))
|
Optimiser(InvDecay(..), Opt(..))
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
mutable struct InvDecay
|
mutable struct InvDecay
|
||||||
|
@ -483,9 +483,8 @@ Discount the learning rate `eta` by a multiplicative factor `decay` every `decay
|
||||||
## Example
|
## Example
|
||||||
To apply exponential decay to an optimiser:
|
To apply exponential decay to an optimiser:
|
||||||
```julia
|
```julia
|
||||||
Optimiser(ExpDecay(..), Opt(..))
|
Optimiser(ExpDecay(..), Opt(..))
|
||||||
|
opt = Optimiser(ExpDecay(), ADAM())
|
||||||
opt = Optimiser(ExpDecay(), ADAM())
|
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
mutable struct ExpDecay
|
mutable struct ExpDecay
|
||||||
|
|
Loading…
Reference in New Issue