openrl.algorithms package¶
Submodules¶
openrl.algorithms.base_algorithm module¶
openrl.algorithms.dqn module¶
- class openrl.algorithms.dqn.DQNAlgorithm(cfg, init_module, agent_num: int = 1, device: Union[str, torch.device] = 'cpu')[source]¶
Bases:
openrl.algorithms.base_algorithm.BaseAlgorithm- cal_value_loss(value_normalizer, values, value_preds_batch, return_batch, active_masks_batch)[source]¶
openrl.algorithms.mat module¶
openrl.algorithms.ppo module¶
- class openrl.algorithms.ppo.PPOAlgorithm(cfg, init_module, agent_num: int = 1, device: Union[str, torch.device] = 'cpu')[source]¶
Bases:
openrl.algorithms.base_algorithm.BaseAlgorithm- cal_value_loss(value_normalizer, values, value_preds_batch, return_batch, active_masks_batch)[source]¶
openrl.algorithms.vdn module¶
- class openrl.algorithms.vdn.VDNAlgorithm(cfg, init_module, agent_num: int = 1, device: Union[str, torch.device] = 'cpu')[source]¶
Bases:
openrl.algorithms.base_algorithm.BaseAlgorithm- cal_value_loss(value_normalizer, values, value_preds_batch, return_batch, active_masks_batch)[source]¶