Implementiere update_q_value
This commit is contained in:
parent
a74be2fc31
commit
933d0c5d27
3 changed files with 14 additions and 3 deletions
5
test.py
5
test.py
|
|
@ -10,6 +10,11 @@ def test_get_q_value(ai):
|
|||
|
||||
def test_update_q_value(ai):
|
||||
print("\n--- Testing update_q_value ---")
|
||||
state = (2, 1, 1, 0)
|
||||
action = (0, 1)
|
||||
print(ai.q)
|
||||
print(ai.update_q_value([2, 1, 1, 0], (0, 1), 0.2, 1, 0.8))
|
||||
print(ai.q)
|
||||
|
||||
|
||||
def test_best_future_reward(ai):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue