1
0
mirror of https://github.com/gryf/coach.git synced 2026-04-19 14:13:32 +02:00

Adding improvements

This commit is contained in:
Ajay Deshpande
2018-10-15 15:57:10 -07:00
committed by zach dwiel
parent 3ba0df7d07
commit 9a30c26469
7 changed files with 38 additions and 27 deletions

View File

@@ -44,13 +44,11 @@ class EpisodicExperienceReplay(Memory):
:param max_size: the maximum number of transitions or episodes to hold in the memory
"""
super().__init__(max_size)
self._buffer = [Episode()] # list of episodes
self.transitions = []
self._length = 1 # the episodic replay buffer starts with a single empty episode
self._num_transitions = 0
self._num_transitions_in_complete_episodes = 0
self.reader_writer_lock = ReaderWriterLock()
def length(self, lock: bool=False) -> int: