MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / _slice

Method _slice

examples/DeepQNetwork/expreplay.py:97–100  ·  view source on GitHub ↗
(self, arr, start, end)

Source from the content-addressed store, hash-verified

95 return (state, reward[-2], action[-2], isOver[-2])
96
97 def _slice(self, arr, start, end):
98 s1 = arr[start:]
99 s2 = arr[:end]
100 return np.concatenate((s1, s2), axis=0)
101
102 def __len__(self):
103 return self._curr_size

Callers 1

sampleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected