Skip to content

Commit

Permalink
doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Petrik committed Apr 2, 2024
1 parent 0835ecb commit 206be3c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/src/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,16 @@ CSV.write(fileout, output)
using MDPs
ε = 0.01
# transition probabilities
P1 = [1 0 0; 0 1 0; 0 0 1]
P2 = [0 1 0; 1-ε 0 ε; 0 0 1]
Ps = [P1, P2]
# rewards
R = [10 -4 0; -1 -3 0; 0 0 0] # use the same reward for both actions
Rs = [R, R]
M = make_int_mdp(Ps, Rs)
state_count(M)
# output
# output
3
```

0 comments on commit 206be3c

Please sign in to comment.