public class QLearner extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
QLearner() |
QLearner(int stateCount,
int actionCount) |
QLearner(int stateCount,
int actionCount,
double alpha,
double gamma,
double initialQ) |
QLearner(QModel model,
ActionSelectionStrategy actionSelectionStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(QLearner rhs) |
boolean |
equals(Object obj) |
String |
getActionSelection() |
QModel |
getModel() |
QLearner |
makeCopy() |
protected double |
maxQAtState(int stateId,
Set<Integer> actionsAtState) |
IndexValue |
selectAction(int stateId) |
IndexValue |
selectAction(int stateId,
Set<Integer> actionsAtState) |
void |
setActionSelection(String conf) |
void |
setModel(QModel model) |
void |
update(int stateId,
int actionId,
int nextStateId,
double immediateReward) |
void |
update(int stateId,
int actionId,
int nextStateId,
Set<Integer> actionsAtNextStateId,
double immediateReward) |
protected QModel model
public QLearner()
public QLearner(int stateCount,
int actionCount)
public QLearner(QModel model, ActionSelectionStrategy actionSelectionStrategy)
public QLearner(int stateCount,
int actionCount,
double alpha,
double gamma,
double initialQ)
public QLearner makeCopy()
public void copy(QLearner rhs)
public QModel getModel()
public void setModel(QModel model)
public String getActionSelection()
public void setActionSelection(String conf)
public IndexValue selectAction(int stateId, Set<Integer> actionsAtState)
public IndexValue selectAction(int stateId)
public void update(int stateId,
int actionId,
int nextStateId,
double immediateReward)
Copyright © 2017. All rights reserved.