public interface TimeFunction
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
static TimeFunction |
constant(double alpha)
Returns the constant learning rate.
|
static TimeFunction |
exp(double alpha,
double C)
Returns the power series learning rate lambda (alpha * exp(-t/C)).
|
static TimeFunction |
inverse(double alpha,
double C)
Returns the inverse learning rate lambda (alpha * C / (C + t)).
|
static TimeFunction |
linear(double alpha,
double T)
Returns the linear learning rate lambda (alpha * (1 - t/T)).
|
double |
of(int t)
Returns the learning rate at a given iteration.
|
double of(int t)
t - the order number of current iteration.static TimeFunction constant(double alpha)
alpha - the learning rate.static TimeFunction linear(double alpha, double T)
alpha - the initial learning rate.T - the number of iterations.static TimeFunction inverse(double alpha, double C)
alpha - the initial learning rate.C - a small percentage of the number of iterations.static TimeFunction exp(double alpha, double C)
alpha - the initial learning rate.C - a small percentage of the number of iterations.