dyna-maze based on https://github.com/thehawkgriffith/dyna-maze
✓ Published0🌍 Public
SSohojoe
Last edited Jul 15, 2020
Created on Jul 15, 2020
This example animates a reinforcement-learning agent navigating a 6×9 grid maze toward a goal state, using the Dyna-Q algorithm to balance exploration and planning. The visualization shows the agent’s current position as a marker, a live policy heatmap of action values, and the cumulative reward per episode. Built with Matplotlib and NumPy, the scene renders in a terminal via `Environment.render()`, while the agent’s state and action history drive the displayed trajectories. The maze layout, obstacles, and reward structure come from the `dyna-maze` repository’s hardcoded environment.
AI-generated description