public class MountainCar extends java.lang.Object implements DomainGenerator
Domain
, changing the physics parameters of this DomainGenerator
will
not affect how the previously generated domain behaves, only future generated ones.
1. Singh, Satinder P., and Richard S. Sutton. "Reinforcement learning with replacing eligibility traces." Machine learning 22.1-3 (1996): 123-158.
Modifier and Type | Class and Description |
---|---|
static class |
MountainCar.ClassicMCTF
A Terminal Function for the Mountain Car domain that terminates when the agent's position is >= the max position in the world (0.5 default).
|
static class |
MountainCar.MCModel |
static class |
MountainCar.MCPhysicsParams |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_BACKWARDS
A constant for the name of the backwards action
|
static java.lang.String |
ACTION_COAST
A constant for the name of the coast action
|
static java.lang.String |
ACTION_FORWARD
A constant for the name of the forward action
|
static java.lang.String |
ATT_V
A constant for the name of the velocity attribute
|
static java.lang.String |
ATT_X
A constant for the name of the x attribute
|
MountainCar.MCPhysicsParams |
physParams
The physics parameters for mountain car.
|
protected RewardFunction |
rf |
protected TerminalFunction |
tf |
Constructor and Description |
---|
MountainCar() |
Modifier and Type | Method and Description |
---|---|
SADomain |
generateDomain()
Returns a newly instanced Domain object
|
RewardFunction |
getRf() |
TerminalFunction |
getTf() |
static void |
main(java.lang.String[] args)
Will launch a visual explorer for the mountain car domain that is controlled with the a-s-d keys.
|
void |
setRf(RewardFunction rf) |
void |
setTf(TerminalFunction tf) |
MCState |
valleyState() |
public static final java.lang.String ATT_X
public static final java.lang.String ATT_V
public static final java.lang.String ACTION_FORWARD
public static final java.lang.String ACTION_BACKWARDS
public static final java.lang.String ACTION_COAST
public MountainCar.MCPhysicsParams physParams
protected RewardFunction rf
protected TerminalFunction tf
public TerminalFunction getTf()
public void setTf(TerminalFunction tf)
public RewardFunction getRf()
public void setRf(RewardFunction rf)
public SADomain generateDomain()
DomainGenerator
generateDomain
in interface DomainGenerator
public MCState valleyState()
public static void main(java.lang.String[] args)
args
- empty arguments.