DDPG¶
- class DDPG(model, gamma=None, tau=None, actor_lr=None, critic_lr=None)[源代码]¶
基类:
parl.core.paddle.algorithm.Algorithm
- __init__(model, gamma=None, tau=None, actor_lr=None, critic_lr=None)[源代码]¶
DDPG algorithm :param model: forward network of actor and critic. :type model: parl.Model :param gamma: discounted factor for reward computation :type gamma: float :param tau: decay coefficient when updating the weights of self.target_model with self.model :type tau: float :param actor_lr: learning rate of the actor model :type actor_lr: float :param critic_lr: learning rate of the critic model :type critic_lr: float