Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ repeat_frame
Function
repeat_frame
rl2/a3c/worker.py:41–42 ·
view source on GitHub ↗
(frame)
Source
from the content-addressed store, hash-verified
39
40
# Create initial state by repeating the same frame 4 times
41
def
repeat_frame(frame):
42
return
np.stack([frame] * 4, axis=2)
43
44
45
# Create next state by shifting each frame by 1
Callers
2
run
Method · 0.85
run_n_steps
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected