net.sourceforge.jabm.learning
Interface DiscreteLearner

All Superinterfaces:
Learner
All Known Subinterfaces:
MDPLearner, StimuliResponseLearner
All Known Implementing Classes:
DumbLearner, DumbRandomLearner, MetaLearner, NPTRothErevLearner, QLearner, RothErevLearner, StatelessQLearner

public interface DiscreteLearner
extends Learner

A learner that learns a discrete number of different actions.

 

Method Summary
 int act()
          Request that the learner perform an action.
 int getNumberOfActions()
          Get the number of different possible actions this learner can choose from when it performs an action.
 
Methods inherited from interface net.sourceforge.jabm.learning.Learner
dumpState, getLearningDelta, monitor
 

Method Detail

act

int act()
Request that the learner perform an action. Users of the learning algorithm should invoke this method on the learner when they wish to find out which action the learner is currently recommending.

Returns:
An integer representing the action to be taken.

getNumberOfActions

int getNumberOfActions()
Get the number of different possible actions this learner can choose from when it performs an action.

Returns:
An integer value representing the number of actions available.