gym_loop module¶
Top-level package for Gym Loop.
gym_loop cli¶
Usage: gym-loop [OPTIONS] COMMAND [ARGS]…
Console script for gym-loop.
Commands:
create-default Produce default run config for the agent and loop…
eval Evaluate agent specified in run config without updating
train Run agent training experiment specified in run config
gym_loop main module¶
-
gym_loop.gym_loop.eval_agent(run_params)[source]¶ Run loop without updating agent
- Args:
- run_params(dict) Dictionary from parsed configuration file
-
gym_loop.gym_loop.get_default_params(agent_str, loop_str)[source]¶ Build a dict with default run spec for the agent
- Args:
- loop_str (str): loop module class string of format ‘package.module:class’ or ‘loop_filepath:class’ agent_str (str): agent module class string of format ‘package.module:class’ or ‘agent_filepath:class’
- Returns:
- dict: default run spec dict
-
gym_loop.gym_loop.module_str_to_class(module_str)[source]¶ Parse module class string to a class
- Args:
- module_str(str) Dictionary from parsed configuration file
- Returns:
- type: class
gym_loop agents¶
-
class
gym_loop.agents.base_agent.BaseAgent(**params)[source]¶ Bases:
object-
static
get_default_parameters() → Dict[KT, VT][source]¶ Specifies tweakable parameters for agents
- Returns:
- dict: default parameters for the agent
-
static
get_default_policy() → Dict[KT, VT][source]¶ Specifies default policy to use with agent
- Returns:
- dict: class string and parameters for the policy
-
static
-
class
gym_loop.agents.random_agent.RandomAgent(**params)[source]¶ Bases:
gym_loop.agents.base_agent.BaseAgent-
static
get_default_parameters()[source]¶ Specifies tweakable parameters for agents
- Returns:
- dict: default parameters for the agent
-
static