class_docstr: This class computes the loss function for PPO.
class_docstr_tok: ["This","class","computes","the","loss","function","for","PPO","."]
code: def __init__(
      self,
      value_weight,
      entropy_weight,
      clipping_width,
      action_prob_index,
      value_index,
  ):
      self.value_weight = value_weight
      self.entropy_weight = entropy_weight
      self.clipping_width = clipping_width
      self.action_prob_index = action_prob_index
      self.value_index = value_index
  
imports: import copy
  import time
  from collections.abc import Sequence
  from multiprocessing.dummy import Pool
  import numpy
  import tensorflow
  from deepchem.models import KerasModel
  from deepchem.models.optimizers import Adam
label_desc: Use image node_id 1 to create a new PPOLoss object from inherited base classes: object with example: obj = PPOLoss(value_weight, entropy_weight, clipping_width, action_prob_index, value_index)