From fa2f6b195c8d3f4fbdb51e1d02d572de04116b0e Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Sat, 8 Oct 2016 22:19:49 +0100 Subject: [PATCH] Correcting docstring typo. --- mlp/learning_rules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlp/learning_rules.py b/mlp/learning_rules.py index 22f2bcb..c2cb013 100644 --- a/mlp/learning_rules.py +++ b/mlp/learning_rules.py @@ -51,7 +51,7 @@ class GradientDescentLearningRule(object): self.params = params def reset(self): - """Resets any additional state variables to their intial values. + """Resets any additional state variables to their initial values. For this learning rule there are no additional state variables so we do nothing here. @@ -138,7 +138,7 @@ class MomentumLearningRule(GradientDescentLearningRule): self.moms.append(np.zeros_like(param)) def reset(self): - """Resets any additional state variables to their intial values. + """Resets any additional state variables to their initial values. For this learning rule this corresponds to zeroing all the momenta. """