From 711c2e8dd1f88bc03fde60d86715c9b1c65d3b9f Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Fri, 20 Mar 2020 19:30:56 -0400 Subject: [PATCH] Cleaned up scheduler docs --- rltorch/scheduler/ExponentialScheduler.py | 4 +++- rltorch/scheduler/LinearScheduler.py | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rltorch/scheduler/ExponentialScheduler.py b/rltorch/scheduler/ExponentialScheduler.py index f5d3c65..97a9ebd 100644 --- a/rltorch/scheduler/ExponentialScheduler.py +++ b/rltorch/scheduler/ExponentialScheduler.py @@ -11,8 +11,10 @@ class ExponentialScheduler(Scheduler): times you call `next`. (denoted as :math:`i`) :math:`y(1) = initial\_value` + + :math:`base = \sqrt[iterations]{\frac{end\_value}{initial\_value}}` + :math:`y(i) = y(1) \cdot base^{i - 1}` - :math:`base = \sqrt[iterations]{\frac{end\_value}{initial\_value}}`. Another property is that :math:`y(iterations) = end\_value`. diff --git a/rltorch/scheduler/LinearScheduler.py b/rltorch/scheduler/LinearScheduler.py index 3637538..c15534f 100644 --- a/rltorch/scheduler/LinearScheduler.py +++ b/rltorch/scheduler/LinearScheduler.py @@ -10,8 +10,10 @@ class LinearScheduler(Scheduler): The forumula used to produce the value :math:`y` is based on the number of times you call `next`. (denoted as :math:`i`) - :math:`y(i) = slope \cdot (i - 1) + initial\_value` - where :math:`slope = \frac{end\_value - initial\_value)}{iterations}`. + :math:`y(1) = initial\_value` + + :math:`y(i) = slope(i - 1) + y(1)` + where :math:`slope = \frac{end\_value - initial\_value}{iterations}`. Parameters ----------