Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce8a098

Browse files
ad71norvig
authored andcommitted
Enhanced mdp notebook (#743)
* Added Policy Iteration section * Removed ambiguous test * Capitalized header * Added images * Added section for sequential decision problems
1 parent af50f30 commit ce8a098

File tree

12 files changed

+1220
-10
lines changed

12 files changed

+1220
-10
lines changed

images/-0.04.jpg

16.5 KB
Loading

images/-0.4.jpg

19.6 KB
Loading

images/-4.jpg

19.1 KB
Loading

images/4.jpg

21 KB
Loading

images/ge0.jpg

19.8 KB
Loading

images/ge1.jpg

20.6 KB
Loading

images/ge2.jpg

25.6 KB
Loading

images/ge4.jpg

23.1 KB
Loading

images/grid_mdp.jpg

13.2 KB
Loading

images/grid_mdp_agent.jpg

6.49 KB
Loading

mdp.ipynb

Lines changed: 1220 additions & 2 deletions
Large diffs are not rendered by default.

tests/test_mdp.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ def test_policy_iteration():
7070
(2, 1): (1, 0), (2, 2): (1, 0), (3, 0): (0, 1),
7171
(3, 1): None, (3, 2): None}
7272

73-
assert policy_iteration(sequential_decision_environment_3) == {
74-
(0, 0): (-1, 0), (0, 1): (0, -1), (0, 2): (0, -1), (0, 3): (0, -1), (0, 4): None,
75-
(1, 0): (-1, 0), (1, 1): (-1, 0), (1, 4): (1, 0),
76-
(2, 0): (-1, 0), (2, 1): (0, -1), (2, 2): None, (2, 4): (1, 0),
77-
(3, 0): (-1, 0), (3, 2): None, (3, 3): (1, 0), (3, 4): (1, 0),
78-
(4, 0): (-1, 0), (4, 3): (1, 0), (4, 4): (1, 0),
79-
(5, 0): None, (5, 1): (0, 1), (5, 2): (0, 1), (5, 3): (0, 1), (5, 4): (1, 0)}
80-
8173

8274
def test_best_policy():
8375
pi = best_policy(sequential_decision_environment,

0 commit comments

Comments
 (0)