Skip to content

Commit

Permalink
Update subsample_similar.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeyers authored Aug 23, 2024
1 parent 9fbc536 commit 645078c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion og_marl/vault_utils/subsample_similar.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_episode_returns_and_term_idxes(offline_data: Dict[str, Array]) -> Tuple[
rewards = offline_data["rewards"][0, :, 0]
terminal_flag = offline_data["terminals"][0, :, ...].all(axis=-1)

assert terminal_flag[-1] is True
assert bool(terminal_flag[-1]) is True

def scan_cumsum(
return_so_far: float, prev_term_reward: Tuple[bool, float]
Expand Down

0 comments on commit 645078c

Please sign in to comment.