9128a4b20336fb8c07fc4e0e0985fe299d1a5f12,tensorforce/core/memories/replay_memory.py,ReplayMemory,get_batch,#ReplayMemory#Any#,71
Before Change
for n in range(len(self.internals)):
batch["internals"].append(self.internals.take(indices))
return batch
After Change
else:
indices = list(xrange(start, self.capacity)) + list(xrange(0, end))
return dict(
states={name: state.take(indices, axis=0) for name, state in self.states.items()},
actions={name: action.take(indices) for name, action in self.actions.items()},
rewards=self.rewards.take(indices),
terminals=self.terminals.take(indices),
internals=[internal.take(indices, axis=0) for internal in self.internals]
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: reinforceio/tensorforce
Commit Name: 9128a4b20336fb8c07fc4e0e0985fe299d1a5f12
Time: 2017-05-20
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/core/memories/replay_memory.py
Class Name: ReplayMemory
Method Name: get_batch
Project Name: apache/incubator-mxnet
Commit Name: e3d7866e6854a5c11ab2b2c8bfb63de66f79e132
Time: 2020-04-13
Author: 59728467+AntiZpvoh@users.noreply.github.com
File Name: python/mxnet/ndarray/numpy/random.py
Class Name:
Method Name: choice
Project Name: SheffieldML/GPy
Commit Name: a98334e009df0d1fbf67c25dec10496a3f130ec7
Time: 2014-03-03
Author: ibinbei@gmail.com
File Name: GPy/core/parameterization/param.py
Class Name: Param
Method Name: _description_str