Skip to content
Snippets Groups Projects
Commit 9f86e7e8 authored by Daniel Gnad's avatar Daniel Gnad
Browse files

Merge branch 'dev-rl-lab'

parents 7dc4aca4 cf7be954
No related branches found
No related tags found
No related merge requests found
from IPython.display import clear_output
import time
def animate(frames, delay_per_frame):
for i, frame in enumerate(frames):
clear_output(wait=True)
print(frame['frame'])
print(f"Episode: {frame['episode']}")
print(f"Timestep: {i + 1} / {len(frames)}")
print(f"State: {frame['state']}")
print(f"Action: {frame['action']}")
print(f"Reward: {frame['reward']}")
print(f"Penalties: {frame['penalties']}")
time.sleep(delay_per_frame)
...@@ -10,3 +10,6 @@ scipy==1.7.0 ...@@ -10,3 +10,6 @@ scipy==1.7.0
python-constraint==1.4.0 python-constraint==1.4.0
unified-planning==0.6.0 unified-planning==0.6.0
up-pyperplan==1.0.0 up-pyperplan==1.0.0
gym==0.18.3
ipython
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment