MCPcopy Create free account
hub / github.com/rlcode/reinforcement-learning / cell_key

Function cell_key

4-atari-hard/2-go-explore.py:70–73  ·  view source on GitHub ↗

(210, 160) uint8 grayscale frame -> 88-byte archive key.

(frame)

Source from the content-addressed store, hash-verified

68
69
70def cell_key(frame):
71 """(210, 160) uint8 grayscale frame -> 88-byte archive key."""
72 small = cv2.resize(frame, (CELL_W, CELL_H), interpolation=cv2.INTER_AREA)
73 return ((small / 255.0) * CELL_LEVELS).astype(np.uint8).tobytes()
74
75
76class Cell:

Callers 2

_explore_taskFunction · 0.85
2-go-explore.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected