2018-03-09 15:07:14 +08:00
|
|
|
from .base import DataBufferBase
|
|
|
|
|
2018-05-20 22:36:04 +08:00
|
|
|
__all__ = []
|
|
|
|
|
|
|
|
|
2018-03-09 15:07:14 +08:00
|
|
|
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.
|
2018-03-09 15:07:14 +08:00
|
|
|
"""
|
|
|
|
def remove(self):
|
|
|
|
raise NotImplementedError()
|