Skip to content

Commit

Permalink
"removing enforce exploitatio"
Browse files Browse the repository at this point in the history
  • Loading branch information
ferielamira1 committed May 20, 2024
1 parent bd68303 commit 6cb83f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions abm/projects/madrl_foraging/madrl_agent/brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ def select_action(self, state):
if len(self.legal_actions)==1:

self.action_tensor = torch.LongTensor([[0]]).to(device)
if 1 in self.legal_actions:
self.action_tensor = torch.LongTensor([[1]]).to(device)


else:
# Epsilon-greedy exploration
Expand Down

0 comments on commit 6cb83f3

Please sign in to comment.