Tianshou/tianshou/data/data_buffer/replay_buffer_base.py

15 lines
456 B
Python
Raw Permalink Normal View History

from .base import DataBufferBase
2018-05-20 22:36:04 +08:00
__all__ = []
class ReplayBufferBase(DataBufferBase):
"""
2018-04-15 17:41:43 +08:00
Base class for replay buffer.
Compared to :class:`DataBufferBase`, it has an additional method :func:`remove`,
which removes extra data points when the size of the data buffer exceeds capacity.
Besides, as the practice of using such replay buffer, it's never :func:`clear` ed.
"""
def remove(self):
raise NotImplementedError()