public class RLGlueSARSALambdaFactory extends RLGLueQlearningFactory
Modifier and Type | Field and Description |
---|---|
protected double |
lambda
The lambda value with default value of 0.5
|
learningPolicy, learningRate, qInitFunction
Constructor and Description |
---|
RLGlueSARSALambdaFactory() |
Modifier and Type | Method and Description |
---|---|
LearningAgent |
generateAgentForRLDomain(Domain domain,
double discount,
RewardFunction rf,
TerminalFunction tf)
Returns a BURLAP learning agent for the given RLGlue generated domain, discount, reward function, and terminal function.
|
double |
getLambda() |
static void |
main(java.lang.String[] args) |
void |
setLambda(double lambda) |
getLearningPolicy, getLearningRate, getqInitFunction, setLearningPolicy, setLearningRate, setqInitFunction
public LearningAgent generateAgentForRLDomain(Domain domain, double discount, RewardFunction rf, TerminalFunction tf)
RLGlueLearningAgentFactory
generateAgentForRLDomain
in interface RLGlueLearningAgentFactory
generateAgentForRLDomain
in class RLGLueQlearningFactory
domain
- a BURALP domain that wraps the RLGlue environment and taskdiscount
- the RLGlue specified discount factorrf
- the RLGlue specified reward functiontf
- the RLGlue specified terminal functionpublic double getLambda()
public void setLambda(double lambda)
public static void main(java.lang.String[] args)