mirror of
https://github.com/wassname/DeepRL.git
synced 2026-10-28 12:30:38 +08:00
Print pictures
This commit is contained in:
1 parent
13533ab2fe
commit
040df4efcf
4 files changed
+147
-47
No files matched your search
@@ -84,3 +84,8 @@ class Batcher:
|
||||
self.batch_start = self.batch_end
|
||||
self.batch_end = min(self.batch_start + self.batch_size, self.num_entries)
|
||||
return batch
|
||||
|
||||
def shuffle(self):
|
||||
indices = np.arange(self.num_entries)
|
||||
np.random.shuffle(indices)
|
||||
self.data = [d[indices] for d in self.data]
|
||||
Reference in new issue
Block a user