Skip to content

Commit

Permalink
rllib
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Fricke <[email protected]>
  • Loading branch information
Kai Fricke committed Jul 6, 2023
1 parent b6ca3f3 commit 8873dfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rllib/core/learner/tests/test_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def test_end_to_end_update(self):
min_loss = min(loss, min_loss)
print(f"[iter = {iter_i}] Loss: {loss:.3f}, Min Loss: {min_loss:.3f}")
# The loss is initially around 0.69 (ln2). When it gets to around
# 0.57 the return of the policy gets to around 100.
if min_loss < 0.57:
# 0.58 the return of the policy gets to around 100.
if min_loss < 0.58:
break
self.assertLess(min_loss, 0.57)
self.assertLess(min_loss, 0.58)

def test_compute_gradients(self):
"""Tests the compute_gradients correctness.
Expand Down

0 comments on commit 8873dfe

Please sign in to comment.