multi_agent_rl¶
coma_learner¶
COMA: Counterfactual Multi-Agent Policy Gradients Paper link: https://ojs.aaai.org/index.php/AAAI/article/view/11794 Implementation: Pytorch
- class xuance.torch.learners.multi_agent_rl.coma_learner.COMA_Learner(config: Namespace, model_keys: List[str], agent_keys: List[str], policy: torch.nn.Module, callback)[source]¶
Bases:
IAC_Learner
commnet_learner¶
dcg_learner¶
DCG: Deep coordination graphs Paper link: http://proceedings.mlr.press/v119/boehmer20a/boehmer20a.pdf Implementation: Pytorch
- class xuance.torch.learners.multi_agent_rl.dcg_learner.DCG_Learner(config: Namespace, model_keys: List[str], agent_keys: List[str], policy: torch.nn.Module, callback)[source]¶
Bases:
LearnerMAS
iac_learner¶
Independent Advantage Actor Critic (IAC) Paper link: https://ojs.aaai.org/index.php/AAAI/article/view/11794 Implementation: Pytorch
- class xuance.torch.learners.multi_agent_rl.iac_learner.IAC_Learner(config: Namespace, model_keys: List[str], agent_keys: List[str], policy: torch.nn.Module, callback)[source]¶
Bases:
LearnerMAS- build_training_data(sample: dict | None, use_parameter_sharing: bool | None = False, use_actions_mask: bool | None = False, use_global_state: bool | None = False)[source]¶
Prepare the training data.
- Parameters:
sample (dict) – The raw sampled data.
use_parameter_sharing (bool) – Whether to use parameter sharing for individual agent models.
use_actions_mask (bool) – Whether to use actions mask for unavailable actions.
use_global_state (bool) – Whether to use global state.
- Returns:
The formatted sampled data.
- Return type:
sample_Tensor (dict)
ic3net_learner¶
- class xuance.torch.learners.multi_agent_rl.ic3net_learner.IC3Net_Learner(config: Namespace, model_keys: List[str], agent_keys: List[str], policy: torch.nn.Module, callback)[source]¶
Bases:
CommNet_Learner- build_training_data(sample: dict | None, use_parameter_sharing: bool | None = False, use_actions_mask: bool | None = False, use_global_state: bool | None = False)[source]¶
Prepare the training data.
- Parameters:
sample (dict) – The raw sampled data.
use_parameter_sharing (bool) – Whether to use parameter sharing for individual agent models.
use_actions_mask (bool) – Whether to use actions mask for unavailable actions.
use_global_state (bool) – Whether to use global state.
- Returns:
The formatted sampled data.
- Return type:
sample_Tensor (dict)
iddpg_learner¶
Independent Deep Deterministic Policy Gradient (IDDPG) Implementation: Pytorch
ippo_learner¶
Independent Proximal Policy Optimization (IPPO) Paper link: https://arxiv.org/pdf/2103.01955.pdf Implementation: Pytorch
iql_learner¶
Independent Q-learning (IQL) Implementation: Pytorch
isac_learner¶
Independent Soft Actor-critic (ISAC) Implementation: Pytorch
isacdis_learner¶
Independent Soft Actor-critic (ISAC) with discrete action spaces. Implementation: Pytorch
- members:
- undoc-members:
- show-inheritance:
maddpg_learner¶
Multi-Agent Deep Deterministic Policy Gradient Paper link: https://proceedings.neurips.cc/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf Implementation: Pytorch Trick: Parameter sharing for all agents, with agents’ one-hot IDs as actor-critic’s inputs.
mappo_learner¶
Multi-Agent Proximal Policy Optimization (MAPPO) Paper link: https://proceedings.neurips.cc/paper_files/paper/2022/file/9c1535a02f0ce079433344e14d910597-Paper-Datasets_and_Benchmarks.pdf Implementation: Pytorch
masac_learner¶
Multi-agent Soft Actor-critic (MASAC) Implementation: Pytorch
masacdis_learner¶
Multi-agent Soft Actor-critic (MASAC) with discrete action spaces. Implementation: Pytorch
matd3_learner¶
Multi-Agent TD3
mfac_learner¶
MFAC: Mean Field Actor-Critic Paper link: http://proceedings.mlr.press/v80/yang18d/yang18d.pdf Implementation: Pytorch
- class xuance.torch.learners.multi_agent_rl.mfac_learner.MFAC_Learner(config: Namespace, model_keys: List[str], agent_keys: List[str], policy: torch.nn.Module, callback)[source]¶
Bases:
IPPO_Learner
mfq_learner¶
MFQ: Mean Field Q-Learning Paper link: http://proceedings.mlr.press/v80/yang18d/yang18d.pdf Implementation: Pytorch
- class xuance.torch.learners.multi_agent_rl.mfq_learner.MFQ_Learner(config: Namespace, model_keys: List[str], agent_keys: List[str], policy: torch.nn.Module, callback)[source]¶
Bases:
LearnerMAS
qmix_learner¶
Qmix: Monotonic value function factorisation for deep multi-agent reinforcement learning Paper link: http://proceedings.mlr.press/v80/rashid18a/rashid18a.pdf Implementation: Pytorch
qtran_learner¶
QTRAN: Learning to Factorize with Transformation for Cooperative Multi-Agent Reinforcement Learning Paper link: http://proceedings.mlr.press/v97/son19a/son19a.pdf Implementation: Pytorch
tarmac_learner¶
- class xuance.torch.learners.multi_agent_rl.tarmac_learner.TarMAC_Learner(config: Namespace, model_keys: List[str], agent_keys: List[str], policy: torch.nn.Module, callback)[source]¶
Bases:
IC3Net_Learner
vdac_learner¶
Value-Dcomposition Actor-Critic (VDAC) Paper link: https://ojs.aaai.org/index.php/AAAI/article/view/17353 Implementation: Pytorch
vdn_learner¶
Value Decomposition Networks (VDN) Paper link: https://arxiv.org/pdf/1706.05296.pdf Implementation: Pytorch
wqmix_learner¶
Weighted QMIX Paper link: https://proceedings.neurips.cc/paper/2020/file/73a427badebe0e32caa2e1fc7530b7f3-Paper.pdf Implementation: Pytorch