summaryrefslogtreecommitdiff
path: root/QTable
diff options
context:
space:
mode:
authorbd-912 <bdunahu@gmail.com>2023-11-15 12:47:42 -0700
committerbd-912 <bdunahu@gmail.com>2023-11-15 12:47:42 -0700
commitced115881e2f60afe41373b6da899f5d2f5403e0 (patch)
tree99d323876a5c32b3b138102440b4a1c6c12ac7be /QTable
parenta2b56742da7b30afa00f33c9a806fa6031be68a5 (diff)
Added new notebook concerning improvements on get_viable_actions
Diffstat (limited to 'QTable')
-rwxr-xr-xQTable/qtsnake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/QTable/qtsnake.py b/QTable/qtsnake.py
index 4b1eac7..55fda1b 100755
--- a/QTable/qtsnake.py
+++ b/QTable/qtsnake.py
@@ -70,7 +70,7 @@ class QSnake:
rewards[best_action] = float("inf")
yield best_action
- def pick_greedy_action(self, q, pid, epsilon):
+ def pick_greedy_action(self, q, pid, epsilon=0):
'''
given a q table, the id of the player
taking action, and a randomization factor,