12 lines
441 B
Python
12 lines
441 B
Python
from .base import DataBufferBase
|
|
|
|
class ReplayBufferBase(DataBufferBase):
|
|
"""
|
|
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()
|