public class MetaLearner extends AbstractLearner implements StimuliResponseLearner, Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
currentLearner |
protected StimuliResponseLearner |
masterLearner |
protected StimuliResponseLearner[] |
subLearners |
monitor
Constructor and Description |
---|
MetaLearner() |
MetaLearner(int numLearners) |
Modifier and Type | Method and Description |
---|---|
int |
act()
Request that the learner perform an action.
|
int |
bestAction() |
void |
dumpState(DataWriter out)
Write out our state data to the specified data writer.
|
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 |
reward(double reward)
Reward the learning algorithm according to the last action it chose.
|
int |
worstAction() |
monitor
protected int currentLearner
protected StimuliResponseLearner[] subLearners
protected StimuliResponseLearner masterLearner
public int act()
DiscreteLearner
act
in interface DiscreteLearner
public void reward(double reward)
StimuliResponseLearner
reward
in interface StimuliResponseLearner
public double getLearningDelta()
Learner
getLearningDelta
in interface Learner
getLearningDelta
in class AbstractLearner
public int getNumberOfActions()
DiscreteLearner
getNumberOfActions
in interface DiscreteLearner
public void dumpState(DataWriter out)
Learner
dumpState
in interface Learner
dumpState
in class AbstractLearner
public int bestAction()
bestAction
in interface StimuliResponseLearner
public int worstAction()
worstAction
in interface StimuliResponseLearner
Copyright © 2014. All rights reserved.