Skip to content

Commit

Permalink
Fix iteration big in PGMORL
Browse files Browse the repository at this point in the history
  • Loading branch information
ffelten committed Aug 7, 2024
1 parent eb25592 commit e21ea8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion morl_baselines/multi_policy/pgmorl/pgmorl.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,9 @@ def train(
}
)
self.num_eval_weights_for_eval = num_eval_weights_for_eval
max_iterations = total_timesteps // self.steps_per_iteration // self.num_envs
# 1 iteration is a full batch for each agents
# -> (steps_per_iteration * num_envs * pop_size) timesteps per iteration
max_iterations = total_timesteps // self.steps_per_iteration // self.num_envs // self.pop_size
iteration = 0
# Init
current_evaluations = [np.zeros(self.reward_dim) for _ in range(len(self.agents))]
Expand Down

0 comments on commit e21ea8b

Please sign in to comment.