class_docstr: Proportional Prioritized Experience Replay.
      
class_docstr_tok: ["Proportional","Prioritized","Experience","Replay","."]
code: def __init__(
      self,
      alpha,
      seg_num,
      size=1e6,
      eps=0.01,
      init_mem=None,
      framestack=4,
  ):
      self.alpha = alpha
      self.seg_num = seg_num
      self.size = int(size)
      self.elements = SumTree(self.size)
      if init_mem:
          self.elements.from_list(init_mem)
      self.framestack = framestack
      self._max_priority = 1.0
      self.eps = eps
  
file_path: PARL/benchmark/fluid/Prioritized_DQN/proportional_per.py
imports: import numpy
label_desc: Use image node_id 1 to create a new ProportionalPER object from inherited base classes: object with example: obj = ProportionalPER(alpha, seg_num, size, eps, init_mem, framestack)