Skip to content

Commit

Permalink
Multiple objectives for one epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Dec 8, 2024
1 parent 26d1406 commit 1cb8a2c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 5 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ train:
compile: True
compile_mode: "reduce-overhead"
float32_matmul_precision: "high"
total_timesteps: 1_000_000_000 # 100_000_000_000 for full games
total_timesteps: 250_000_000 # 1_000_000_000 # 100_000_000_000 for full games
batch_size: 65536
minibatch_size: 2048
anneal_lr: False
Expand Down Expand Up @@ -140,7 +140,10 @@ train:
EVENT_BEAT_MISTY: 90
EVENT_GOT_HM01: 180
EVENT_BEAT_ROUTE_9_TRAINER_0: 300
one_epoch: "EVENT_BEAT_CHAMPION_RIVAL"
one_epoch:
# - "EVENT_BEAT_CHAMPION_RIVAL"
- HM_03
- HM_04

wrappers:
empty:
Expand Down
5 changes: 4 additions & 1 deletion pokemonred_puffer/cleanrl_puffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,10 @@ def done_training(self):
or (
self.config.one_epoch
and self.states
and any(self.config.one_epoch in key for key in self.states.keys())
and (
len(set(self.config.one_epoch).intersection(self.states.keys()))
== len(self.config.one_epoch)
)
)
)

Expand Down
4 changes: 4 additions & 0 deletions sweep-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ env:
max: 81920
is_integer: True
scale: 2500
map_id_scalefactor:
carbs.utils.LinearSpace:
min: 1.0
max: 10.0

train:
total_timesteps:
Expand Down

0 comments on commit 1cb8a2c

Please sign in to comment.