bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitrl::rl::multi_agent::MultiAgentTrainer< EnvType, LearnerType > Class Template Reference

Train a team of learners on a multi-agent environment, an episode at a time. More...

#include <multi_agent_trainer.h>

Public Types

typedef EnvType env_type
typedef LearnerType learner_type

Public Member Functions

 MultiAgentTrainer (const MultiAgentTrainerConfig &config, learner_type &learner)
MultiAgentTrainingResult train (env_type &env)
 Run config.n_episodes episodes of training.

Detailed Description

template<typename EnvType, typename LearnerType>
requires multi_agent_learner<LearnerType, EnvType>
class bitrl::rl::multi_agent::MultiAgentTrainer< EnvType, LearnerType >

Train a team of learners on a multi-agent environment, an episode at a time.

Every step the team chooses the joint action, the environment applies it, and the team learns from the transition. The team decides how its agents learn: independently, as IndependentQLearning does, or from the joint experience.

Member Typedef Documentation

◆ env_type

template<typename EnvType, typename LearnerType>
typedef EnvType bitrl::rl::multi_agent::MultiAgentTrainer< EnvType, LearnerType >::env_type

◆ learner_type

template<typename EnvType, typename LearnerType>
typedef LearnerType bitrl::rl::multi_agent::MultiAgentTrainer< EnvType, LearnerType >::learner_type

Constructor & Destructor Documentation

◆ MultiAgentTrainer()

template<typename EnvType, typename LearnerType>
bitrl::rl::multi_agent::MultiAgentTrainer< EnvType, LearnerType >::MultiAgentTrainer ( const MultiAgentTrainerConfig & config,
learner_type & learner )
inline

Member Function Documentation

◆ train()

template<typename EnvType, typename LearnerType>
requires multi_agent_learner<LearnerType, EnvType>
MultiAgentTrainingResult bitrl::rl::multi_agent::MultiAgentTrainer< EnvType, LearnerType >::train ( env_type & env)

Run config.n_episodes episodes of training.


The documentation for this class was generated from the following file: