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 ----------