|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdlife.rl.DecayingLearningRate
public class DecayingLearningRate
A learning rate function that decreases as a function of the number of times a (State,Action) pair is tried. The function used is:
| Constructor Summary | |
|---|---|
DecayingLearningRate(QTable q,
double rate)
Construct a new DecayingLearningRate function. |
|
| Method Summary | |
|---|---|
double |
alpha(State s,
Action a)
Get the learning rate for next update of the Q-value for the specified (State,Action) pair. |
boolean |
equals(Object o)
Check if two DecayingLearningRate functions are the same. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecayingLearningRate(QTable q,
double rate)
q - the Q-Table.rate - controls the rate of decay. Larger values cause slower decay,
smaller values cause faster decay.| Method Detail |
|---|
public double alpha(State s,
Action a)
alpha in interface LearningRateFunctions - the State.a - the Action.
public boolean equals(Object o)
equals in class Objecto - another DecayingLearningRate object.
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||