From ced115881e2f60afe41373b6da899f5d2f5403e0 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Wed, 15 Nov 2023 12:47:42 -0700 Subject: Added new notebook concerning improvements on get_viable_actions --- QTable/qtsnake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'QTable/qtsnake.py') 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, -- cgit v1.2.3