code: def __init__(self, algorithm, act_dim, expl_noise=0.1):
      assert isinstance(act_dim, int)
      super(Agent, self).__init__(algorithm)
  
      self.act_dim = act_dim
      self.expl_noise = expl_noise
  
      # 注意：最开始先同步self.model和self.target_model的参数.
      self.alg.sync_target(decay=0)
  
file_path: PARL/examples/tutorials/parl2_dygraph/lesson5/ddpg/agent.py
imports: import parl
  import paddle
  import numpy
label_desc: Use image node_id 1 to create a new Agent object from inherited base classes: parl with example: obj = Agent(algorithm, act_dim, expl_noise)