simple_replay_buffer ==================== .. py:module:: simple_replay_buffer Attributes ---------- .. autoapisummary:: simple_replay_buffer.buffer Classes ------- .. autoapisummary:: simple_replay_buffer.SimpleReplayBuffer Module Contents --------------- .. py:class:: SimpleReplayBuffer(capacity: Optional[int] = None) .. py:attribute:: capacity :value: None .. py:attribute:: buffer .. py:method:: store(state, action, reward, next_state, terminated, truncated) Store a transition in the buffer. .. py:method:: extend(replay_buffer: SimpleReplayBuffer) Extend the buffer with another buffer. .. py:method:: sample(batch_size: int = 1, sequential: bool = False) Sample a batch of experiences. .. py:method:: size() Return current buffer size. .. py:method:: clear() Clear the buffer. .. py:method:: __len__() Return the current buffer size. .. py:method:: pop(num_elements: int = 1) Pop elements from the buffer. .. py:data:: buffer