Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 709 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 709 Bytes

How to customize new buffer

1. Inherit BaseBuffer class.

  • If you want to add a new buffer without inheriting the provided buffers, you must inherit the base buffer.

reference: replay_buffer.py, rollout_buffer.py, ...

2. Implement abstract methods.

  • Abstract methods(store, sample) should be implemented. Implement these methods by referring to the comments.
  • When implementing store, it is recommended to check transition data dimension using check_dim. to use the check_dim, run super().__init__() in the __init__.

reference: replay_buffer.py, rollout_buffer.py, ...