MCPcopy Create free account
hub / github.com/Farama-Foundation/ViZDoom / get_samples

Function get_samples

examples/python/learning_tensorflow.py:169–175  ·  view source on GitHub ↗
(memory)

Source from the content-addressed store, hash-verified

167
168
169def get_samples(memory):
170 if len(memory) < batch_size:
171 sample_size = len(memory)
172 else:
173 sample_size = batch_size
174
175 return sample(memory, sample_size)
176
177
178def run(agent, game, replay_memory):

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected