Class
BaseEnvironment
Abstract class from which inherit to implement an environment
Info:
- edit Alexis BRENON alexis.brenon@imag.fr
See also:
Metamethods
keyboard_arrow_up-
__init ( args )
Default constructor.
Parameters:
Abstract Methods
keyboard_arrow_up-
actions ()
Get the possible actions that environment accepts.
Returns:- table A table of accepted actions
-
get_observable_state ()
Returns the current visible state of the environment
Warning:- Do two calls to this function return same values (stochastic or not?)
- environment.ObservableState Observable state of the environment
-
get_reward ()
Get reward obtained from the last action.
Returns:- number A reward
-
get_true_action ()
Return the action index of the expected action for the current state.
Returns:- integer Index of the expected action
-
perform_action ( action_index )
Perform an action on the world that change its internal state.
Parameters:-
integer
action_index
The index of the action to perform
-
self
-
integer
-
reset ()
(Re)Initialize the environment.
Returns:-
self
-