Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AgentMaker/Paddle-RLBooks
/ append
Method
append
ddpg/replay_memory.py:11–12 ·
view source on GitHub ↗
(self, exp)
Source
from the content-addressed store, hash-verified
9
self.buffer = collections.deque(maxlen=max_size)
10
11
def
append(self, exp):
12
self.buffer.append(exp)
13
14
def
sample(self, batch_size):
15
mini_batch = random.sample(self.buffer, batch_size)
Callers
2
train
Function · 0.45
sample
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected