Compare commits
No commits in common. "e5ac7e0b05ebf0ef84e47f1cc601434552ed376c" and "df8b2d836e943cefcba8674fe83c3d118cf56153" have entirely different histories.
e5ac7e0b05
...
df8b2d836e
@ -1,7 +1,4 @@
|
||||
name: Example
|
||||
params:
|
||||
task:
|
||||
env_args:
|
||||
env_args:
|
||||
observable:
|
||||
- type: State
|
||||
coordsAgent: True
|
||||
@ -46,4 +43,3 @@ params:
|
||||
aux_reward_max: 1
|
||||
aux_penalty_max: 0.1
|
||||
void_damage: 5
|
||||
---
|
@ -21,7 +21,7 @@ Contains the ColumbusEnv.
|
||||
There exist two ways to implement new envs:
|
||||
|
||||
- Subclassing ColumbusEnv and expanding _init_ and overriding _setup_.
|
||||
- Using the ColumbusConfigDefined with a desired configuration. This makes configuring ColumbusEnvs via ClusterWorks2-configs possible. (See ColumbusConfigDefinedExample.yaml for an example of how the parameters are supposed to look like (uses yaml format), I don't have time to write a better documentation right now...) (To test this run 'python humanPlayer.py', select 5, give path to ColumbusConfigDefinedExample.yaml, select 0)
|
||||
- Using the ColumbusConfigDefined with a desired configuration. This makes configuring ColumbusEnvs via ClusterWorks2-configs possible. (See ColumbusConfigDefinedExample.md for an example of how the parameters are supposed to look like (uses yaml format), I don't have time to write a better documentation right now...)
|
||||
|
||||
##### Some caveats / infos
|
||||
|
||||
|
@ -28,7 +28,7 @@ def loadConfigDefinedEnv(EnvClass):
|
||||
p = input('[Path to config> ')
|
||||
with open(p, 'r') as f:
|
||||
docs = list([d for d in yaml.safe_load_all(
|
||||
f) if d and 'name' in d and d['name'] not in ['SLURM']])
|
||||
f) if 'name' in d and d['name'] not in ['SLURM']])
|
||||
for i, doc in enumerate(docs):
|
||||
name = doc['name']
|
||||
print('['+str(i)+'] '+name)
|
||||
|
Loading…
Reference in New Issue
Block a user