Skip to content

Commit

Permalink
Updated air hockey sac test
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-il-forte committed Feb 5, 2025
1 parent a536821 commit de6f703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mujoco_air_hockey_sac.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def experiment(alg, n_epochs, n_steps, n_steps_test):

J = np.mean(dataset.discounted_return)
R = np.mean(dataset.undiscounted_return)
E = agent.policy.entropy(dataset.state)
E = agent.policy.entropy(dataset.state).item()

logger.epoch_info(0, J=J, R=R, entropy=E)

Expand All @@ -135,7 +135,7 @@ def experiment(alg, n_epochs, n_steps, n_steps_test):

J = np.mean(dataset.discounted_return)
R = np.mean(dataset.undiscounted_return)
E = agent.policy.entropy(dataset.state)
E = agent.policy.entropy(dataset.state).item()

logger.epoch_info(n+1, J=J, R=R, entropy=E)

Expand Down

0 comments on commit de6f703

Please sign in to comment.