From b8522b90bbc1f606047802e9e93ead8a1cde3d80 Mon Sep 17 00:00:00 2001 From: Krzysztof Rudnicki Date: Sun, 21 May 2023 19:18:50 +0200 Subject: [PATCH] fix: ValueError: too many values to unpack (expected 4) --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e46be2f5..03a42d0c 100644 --- a/main.py +++ b/main.py @@ -131,7 +131,7 @@ def inference(env, q_table): # Choose the action with the highest Q-value action = np.argmax(q_table) # Take the action and observe the next state - _, terminated, truncated, _ = env.step(action) + _, _, terminated, truncated, _ = env.step(action) done = terminated or truncated