Arcade Learning Environment¶
-
class
tensorforce.environments.
ArcadeLearningEnvironment
(level, life_loss_terminal=False, life_loss_punishment=0.0, repeat_action_probability=0.0, visualize=False, frame_skip=1, seed=None)[source]¶ Arcade Learning Environment adapter (specification key:
ale
,arcade_learning_environment
).May require:
sudo apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev cmake git clone https://github.com/mgbellemare/Arcade-Learning-Environment.git cd Arcade-Learning-Environment mkdir build && cd build cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=ON .. make -j 4 cd .. pip install .
Parameters: - level (string) – ALE rom file (required).
- loss_of_life_termination – Signals a terminal state on loss of life (default: false).
- loss_of_life_reward (float) – Reward/Penalty on loss of life (negative values are a penalty) (default: 0.0).
- repeat_action_probability (float) – Repeats last action with given probability (default: 0.0).
- visualize (bool) – Whether to visualize interaction (default: false).
- frame_skip (int > 0) – Number of times to repeat an action without observing (default: 1).
- seed (int) – Random seed (default: none).