|
bitsim
Model, simulate, estimate and control robots in C++
|
Namespaces | |
| namespace | detail |
Classes | |
| class | AgentTrainer |
| Train one agent of a multi-agent environment, an episode at a time. More... | |
| class | IndependentQLearning |
| Every agent learns its own Q-table with Q-learning, as if the others were part of the environment. More... | |
| struct | MultiAgentEpisodeResult |
| What one episode of a multi-agent environment gave. More... | |
| struct | MultiAgentTrainerConfig |
| The settings of MultiAgentTrainer. More... | |
| struct | MultiAgentTrainingResult |
| What MultiAgentTrainer::train() gave: an entry per episode. More... | |
| class | MultiAgentTrainer |
| Train a team of learners on a multi-agent environment, an episode at a time. More... | |
| struct | IndependentQLearningConfig |
| The settings of a Q-learning agent among others, and of IndependentQLearning. More... | |
| class | QLearningAgent |
| One agent of a multi-agent environment that learns its own Q-table with Q-learning, as if the others were part of the environment. More... | |
Functions | |
| template<typename EnvType, typename ActorType> requires agent_env<EnvType> && agent_actor<ActorType, EnvType> | |
| MultiAgentEpisodeResult | run_agent_episode (EnvType &env, ActorType &actor, const std::function< void(const typename EnvType::time_step_type &)> &on_step={}) |
| Play one episode of env with the action of one agent chosen by actor. | |
| template<typename EnvType, typename ActorType> requires multi_agent_actor<ActorType, EnvType> | |
| MultiAgentEpisodeResult | run_episode (EnvType &env, ActorType &actor, const std::function< void(const typename EnvType::time_step_type &)> &on_step={}) |
| Play one episode: reset env, then let actor choose the joint actions until the episode is over. | |
| MultiAgentEpisodeResult bitrl::rl::multi_agent::run_agent_episode | ( | EnvType & | env, |
| ActorType & | actor, | ||
| const std::function< void(const typename EnvType::time_step_type &)> & | on_step = {} ) |
Play one episode of env with the action of one agent chosen by actor.
The result has the returns of every agent, which the time steps give.
| MultiAgentEpisodeResult bitrl::rl::multi_agent::run_episode | ( | EnvType & | env, |
| ActorType & | actor, | ||
| const std::function< void(const typename EnvType::time_step_type &)> & | on_step = {} ) |
Play one episode: reset env, then let actor choose the joint actions until the episode is over.
| on_step | called with every time step, the first one included, to record the episode |