|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines an agent as generally understand in RL and other AI problems.
Agents are assumed serializable! Episode state information should be transient!
Method Summary | |
void |
endEpisode(State finalState)
Used by the state space (or environement) to tell the agent that the episode is terminated. |
boolean |
getEvalMode()
Indicates whether the agent is in evaluation mode. |
boolean |
isAdaptive()
Indicates whether the agent is static (never adapts, no learning) or adaptives (the agents learn). |
boolean |
isEvaluable()
Indicates whether the agent can be placed in eval mode. |
void |
newEpisode(State newState)
Used to tell the agent that a new episode is beginning. |
Action |
requestAction(State currentState)
Used by the State space (or environment) to request an action from the agent. |
void |
returnReward(State resultState,
double reward)
Used by the state space (or environement) to return the result from the last action done thought RequestActions. |
void |
setEvalMode(boolean newEvalMode)
Sets the agent in evaluation mode, that is, no training should append. |
DataSet |
toDataSet()
Similar to the toString method, but return state content in the form of a DataSet. |
Method Detail |
public void endEpisode(State finalState)
finalState
- Final state of the episode.public boolean getEvalMode()
public boolean isAdaptive()
public boolean isEvaluable()
public void newEpisode(State newState)
newState
- First stae of the episode.public Action requestAction(State currentState)
currentState
- The current state of the agent.
public void returnReward(State resultState, double reward)
resultState
- Resulting state from last action.reward
- Resulting reward from last action.public void setEvalMode(boolean newEvalMode)
newEvalMode
- true to set it into evaluation mode.
false to set it into normal possibly adaptive mode.public DataSet toDataSet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |