From f4365dab94e6cc2f46e7604f5ba1de311617db28 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Sun, 1 Mar 2020 15:19:22 +0100 Subject: [PATCH] fix docstring example indentation as well --- src/optimise/optimisers.jl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/optimise/optimisers.jl b/src/optimise/optimisers.jl index 75ba8618..c8e00126 100644 --- a/src/optimise/optimisers.jl +++ b/src/optimise/optimisers.jl @@ -451,7 +451,7 @@ Applies inverse time decay to an optimiser, i.e., the effective step size at ite ## Example ```julia - Optimiser(InvDecay(..), Opt(..)) +Optimiser(InvDecay(..), Opt(..)) ``` """ mutable struct InvDecay @@ -483,9 +483,8 @@ Discount the learning rate `eta` by a multiplicative factor `decay` every `decay ## Example To apply exponential decay to an optimiser: ```julia - Optimiser(ExpDecay(..), Opt(..)) - - opt = Optimiser(ExpDecay(), ADAM()) +Optimiser(ExpDecay(..), Opt(..)) +opt = Optimiser(ExpDecay(), ADAM()) ``` """ mutable struct ExpDecay