RL Visualizer is a Python package for visualizing action probabilities, entropy, and rewards in reinforcement learning models.
- Visualize action probabilities as bar charts
- Track entropy to monitor model uncertainty
- Plot per-step rewards within a single episode
- Compatible with Gym and Gymnasium environments
pip install rl-visualizer
- Here you can see what rl_visualizer do in action:
- This is a custom highway simulated environment in Gymasium format
- Action space: is defined with this
- Enum class Action(Enum):
NO_ACTION = 0
CHANGE_LANE_RIGHT = 1
CHANGE_LANE_LEFT = 2
ACCELERATE = 3
DECELERATE = 4
EMERGENCY_BRAKE = 5