dacbench.agents.simple_agents
Module Contents
Classes
Abstract class to implement for use with the runner function |
|
Abstract class to implement for use with the runner function |
- class dacbench.agents.simple_agents.RandomAgent(env)
Bases:
dacbench.abstract_agent.AbstractDACBenchAgentAbstract class to implement for use with the runner function
- act(self, state, reward)
Compute and return environment action
- Parameters
state – Environment state
reward – Environment reward
- Returns
Action to take
- Return type
action
- train(self, next_state, reward)
Train during episode if needed (pass if not)
- Parameters
next_state – Environment state after step
reward – Environment reward
- end_episode(self, state, reward)
End of episode training if needed (pass if not)
- Parameters
state – Environment state
reward – Environment reward
- class dacbench.agents.simple_agents.StaticAgent(env, action)
Bases:
dacbench.abstract_agent.AbstractDACBenchAgentAbstract class to implement for use with the runner function
- act(self, state, reward)
Compute and return environment action
- Parameters
state – Environment state
reward – Environment reward
- Returns
Action to take
- Return type
action
- train(self, next_state, reward)
Train during episode if needed (pass if not)
- Parameters
next_state – Environment state after step
reward – Environment reward
- end_episode(self, state, reward)
End of episode training if needed (pass if not)
- Parameters
state – Environment state
reward – Environment reward