fps()

This utility method returns the number of frames (or environment steps) executed per actual (wall-clock) second. This is useful to keep track of the environment execution speeds and how fast the agent can sample from the environment.

Get Hands-On Intelligent Agents with OpenAI Gym now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.