mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 18:23:15 +02:00
fix: ValueError: too many values to unpack (expected 4)
This commit is contained in:
parent
a605caef2b
commit
b8522b90bb
2
main.py
2
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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user