mirror of
https://github.com/gryf/coach.git
synced 2026-04-19 14:13:32 +02:00
Adding improvements
This commit is contained in:
committed by
zach dwiel
parent
3ba0df7d07
commit
9a30c26469
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user