Initialize the agent with an environment from where the agent can learn.

initAgent(name, env, conf = NULL, custom_brain = F, ...)

Arguments

name

The name of the Agent, see listAvailableAgent

env

The environment to initialize the Agent

conf

The configuration

custom_brain

Boolean argument: whether to use customized neural network, only for advanced users, not recommended

Value

[AgentArmed].

Examples

initAgent("AgentDQN", "CartPole-v0")