mlpy.mdp.stateaction.Experience

class mlpy.mdp.stateaction.Experience(state, action, next_state, reward=None)[source]

Bases: object

Experience base class.

Representation of an experience occurring from acting in the environment.

Parameters:

state : State

The representation of the current state.

action : Action

The executed action.

next_state : State

The representation of the state following from acting with action in state state.

reward : int or float

The reward awarded by the environment for the state-action pair.

Attributes

state (State) The experienced state
action (Action) The experienced action.
next_state (State) The experienced next state.
reward (float) The experienced reward.