Using a JSON file to easily configure parameters

Before we implement our parameter manager, let's get an idea of what our parameter configuration JSON file will look like. The following is a snippet of the parameters.json file that we will use to configure the parameters of the agent and the environment. The JavaScript Object Notation (JSON) file is a convenient and human-readable format for such data representation. We will discuss what each of these parameters mean in the later sections of this chapter. For now, we will concentrate on how we can use such a file to specify or change the parameters used by the agent and the environment:

{  "agent": {    "max_num_episodes": 70000,    "max_steps_per_episode": 300,    "replay_batch_size": 2000, "use_target_network": ...

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.