Compare commits
	
		
			No commits in common. "e5ac7e0b05ebf0ef84e47f1cc601434552ed376c" and "df8b2d836e943cefcba8674fe83c3d118cf56153" have entirely different histories.
		
	
	
		
			e5ac7e0b05
			...
			df8b2d836e
		
	
		
| @ -1,6 +1,3 @@ | |||||||
| name: Example |  | ||||||
| params: |  | ||||||
|  task: |  | ||||||
|     env_args: |     env_args: | ||||||
|       observable: |       observable: | ||||||
|         - type: State |         - type: State | ||||||
| @ -46,4 +43,3 @@ params: | |||||||
|       aux_reward_max: 1 |       aux_reward_max: 1 | ||||||
|       aux_penalty_max: 0.1 |       aux_penalty_max: 0.1 | ||||||
|       void_damage: 5 |       void_damage: 5 | ||||||
| --- |  | ||||||
| @ -21,7 +21,7 @@ Contains the ColumbusEnv. | |||||||
| There exist two ways to implement new envs: | There exist two ways to implement new envs: | ||||||
| 
 | 
 | ||||||
| - Subclassing ColumbusEnv and expanding _init_ and overriding _setup_. | - 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 | ##### Some caveats / infos | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -28,7 +28,7 @@ def loadConfigDefinedEnv(EnvClass): | |||||||
|     p = input('[Path to config> ') |     p = input('[Path to config> ') | ||||||
|     with open(p, 'r') as f: |     with open(p, 'r') as f: | ||||||
|         docs = list([d for d in yaml.safe_load_all( |         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): |     for i, doc in enumerate(docs): | ||||||
|         name = doc['name'] |         name = doc['name'] | ||||||
|         print('['+str(i)+'] '+name) |         print('['+str(i)+'] '+name) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user