public class DumbLearner extends AbstractLearner implements DiscreteLearner, Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
action |
monitor
Constructor and Description |
---|
DumbLearner() |
Modifier and Type | Method and Description |
---|---|
int |
act()
Request that the learner perform an action.
|
void |
dumpState(DataWriter out)
Write out our state data to the specified data writer.
|
int |
getAction() |
double |
getLearningDelta()
Return a value indicative of the amount of learning that occured during the
last iteration.
|
int |
getNumberOfActions()
Get the number of different possible actions this learner can choose from
when it performs an action.
|
void |
setAction(int action) |
monitor
public void setAction(int action)
public int getAction()
public int act()
DiscreteLearner
act
in interface DiscreteLearner
public double getLearningDelta()
Learner
getLearningDelta
in interface Learner
getLearningDelta
in class AbstractLearner
public void dumpState(DataWriter out)
Learner
dumpState
in interface Learner
dumpState
in class AbstractLearner
public int getNumberOfActions()
DiscreteLearner
getNumberOfActions
in interface DiscreteLearner
Copyright © 2014. All rights reserved.