explorative moves which are identical to best moves estimation will learn

This commit is contained in:
2024-06-09 17:33:10 +02:00
parent 19c972bc7d
commit 64960873c8
+1 -1
View File
@@ -79,9 +79,9 @@ class MachinePlayer(APlayer):
next_move = best_move next_move = best_move
is_exp = False is_exp = False
if uniform() < self.p_exp: if uniform() < self.p_exp:
is_exp = True
index = np.random.randint(len(moves)) index = np.random.randint(len(moves))
next_move = moves[index] next_move = moves[index]
is_exp = best_move != next_move
elif do_sample: elif do_sample:
index = sample(values) index = sample(values)
next_move = moves[index] next_move = moves[index]