org.eyelanguage.rl.reading
Class ReadingReinforcementFunction
java.lang.Object
net.pakl.rl.ReinforcementFunction
org.eyelanguage.rl.reading.ReadingReinforcementFunction
- Direct Known Subclasses:
- ReadingParallelReinforcementFunction
public class ReadingReinforcementFunction
- extends ReinforcementFunction
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadingReinforcementFunction
public ReadingReinforcementFunction(SentenceWorld sWorld)
setReinforcementsForActionsOntoTerminalState
public void setReinforcementsForActionsOntoTerminalState(double reward)
getReward
public double getReward(State state,
Action action)
- Description copied from class:
ReinforcementFunction
- Return the reward given an action from a particular state.
- Overrides:
getReward in class ReinforcementFunction
getReward
public double getReward(State state,
Action action,
State resultingState)
- Description copied from class:
ReinforcementFunction
- Sometimes a reward is also based on the resulting state. Rather than
re-computing the resulting state of the action (and if the results of
actions are stochastic rather than deterministic, that could be the
wrong thing to do), this function lets you pass in the state that
actually resulted.
- Overrides:
getReward in class ReinforcementFunction
getRewardForSuccessfulIdentification
public double getRewardForSuccessfulIdentification()
setRewardForSuccessfulIdentification
public void setRewardForSuccessfulIdentification(double rewardForSuccessfulIdentification)