forked from MAPIRlab/rlrobot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
32 lines (24 loc) · 730 Bytes
/
example.py
File metadata and controls
32 lines (24 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-
# +-----------------------------------------------+
# | RL-ROBOT. Reinforcement Learning for Robotics |
# | Angel Martinez-Tenor |
# | MAPIR. University of Malaga. 2016 |
# +-----------------------------------------------+
""" RL-ROBOT usage example """
import exp
import rlrobot
exp.ENVIRONMENT_TYPE = "MODEL"
exp.TASK_ID = "wander_1k"
exp.FILE_MODEL = exp.TASK_ID + "_model"
exp.N_EPISODES_MODEL = 1
exp.ALGORITHM = "TOSL"
exp.ACTION_STRATEGY = "QBIASR"
exp.N_REPETITIONS = 100
exp.N_EPISODES = 1
exp.N_STEPS = 1 * 10 * 60
exp.SUFFIX = ""
exp.DISPLAY_STEP = 0
rlrobot.run()
# ----------------------
# exp.ACTION_STRATEGY = "softmax"
# rlrobot.run()