Skip to content

Commit

Permalink
polish(TairanMK): update trading env (#831)
Browse files Browse the repository at this point in the history
The Evaluators and Collectors are being created with the same "letter", i changed the Collectors to "c" and left the evaluators with "e"
  • Loading branch information
TairanMK authored Sep 18, 2024
1 parent ae3ddc6 commit 44d5479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dizoo/gym_anytrading/envs/trading_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def create_collector_env_cfg(cfg: dict) -> List[dict]:
collector_env_num = cfg.pop('collector_env_num')
collector_env_cfg = [copy.deepcopy(cfg) for _ in range(collector_env_num)]
for i in range(collector_env_num):
collector_env_cfg[i]['env_id'] += ('-' + str(i) + 'e')
collector_env_cfg[i]['env_id'] += ('-' + str(i) + 'c')
return collector_env_cfg

# override
Expand Down

0 comments on commit 44d5479

Please sign in to comment.