Skip to content

Commit 8cc8ef7

Browse files
committed
Decrease testing epsilon
0.05 allows opponent to score on Pong
1 parent 97e1fe3 commit 8cc8ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def act(self, state):
4343
return (self.online_net(state.unsqueeze(0)) * self.support).sum(2).argmax(1).item()
4444

4545
# Acts with an ε-greedy policy
46-
def act_e_greedy(self, state, epsilon=0.05):
46+
def act_e_greedy(self, state, epsilon=0.001):
4747
return random.randrange(self.action_space) if random.random() < epsilon else self.act(state)
4848

4949
def learn(self, mem):

0 commit comments

Comments
 (0)