|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.jabm.learning.AbstractLearner
net.sourceforge.jabm.learning.DumbLearner
public class DumbLearner
A learner that chooses the same specified action on every iteration.
![]() |
![]() |
| Field Summary | |
|---|---|
protected int |
action
|
| Fields inherited from class net.sourceforge.jabm.learning.AbstractLearner |
|---|
monitor |
| Constructor Summary | |
|---|---|
DumbLearner()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class net.sourceforge.jabm.learning.AbstractLearner |
|---|
monitor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.jabm.learning.Learner |
|---|
monitor |
| Field Detail |
|---|
protected int action
| Constructor Detail |
|---|
public DumbLearner()
| Method Detail |
|---|
public void setAction(int action)
public int getAction()
public int act()
DiscreteLearner
act in interface DiscreteLearnerpublic double getLearningDelta()
Learner
getLearningDelta in interface LearnergetLearningDelta in class AbstractLearnerpublic void dumpState(DataWriter out)
Learner
dumpState in interface LearnerdumpState in class AbstractLearnerpublic int getNumberOfActions()
DiscreteLearner
getNumberOfActions in interface DiscreteLearner
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||