Skip to content

Commit

Permalink
add replace=False
Browse files Browse the repository at this point in the history
  • Loading branch information
philtabor committed Nov 3, 2020
1 parent ba997f7 commit 338a271
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def store_transition(self, state, action, reward, state_, done):
def sample_buffer(self, batch_size):
max_mem = min(self.mem_cntr, self.mem_size)

batch = np.random.choice(max_mem, batch_size)
batch = np.random.choice(max_mem, batch_size, replace=False)

states = self.state_memory[batch]
states_ = self.new_state_memory[batch]
Expand Down

0 comments on commit 338a271

Please sign in to comment.