Skip to content

Commit

Permalink
Don't use deprecated POMDPModelTools in exanoke
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored and WhiffleFish committed Aug 8, 2024
1 parent 79f9816 commit c577b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/quick.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The quick interface is perhaps best demonstrated by an example. The code below d

```jldoctest; output = false, filter = r".*"

Check failure on line 10 in docs/src/quick.md

View workflow job for this annotation

GitHub Actions / build

doctest failure in src/quick.md:10-33 ```jldoctest; output = false, filter = r".*" using QuickPOMDPs using POMDPTools: Deterministic mountaincar = QuickMDP( function (s, a, rng) x, v = s vp = clamp(v + a*0.001 + cos(3*x)*-0.0025, -0.07, 0.07) xp = x + vp if xp > 0.5 r = 100.0 else r = -1.0 end return (sp=(xp, vp), r=r) end, actions = [-1., 0., 1.], initialstate = Deterministic((-0.5, 0.0)), discount = 0.95, isterminal = s -> s[1] > 0.5 ) # output ``` Subexpression: using QuickPOMDPs using POMDPTools: Deterministic mountaincar = QuickMDP( function (s, a, rng) x, v = s vp = clamp(v + a*0.001 + cos(3*x)*-0.0025, -0.07, 0.07) xp = x + vp if xp > 0.5 r = 100.0 else r = -1.0 end return (sp=(xp, vp), r=r) end, actions = [-1., 0., 1.], initialstate = Deterministic((-0.5, 0.0)), discount = 0.95, isterminal = s -> s[1] > 0.5 ) Evaluated output: Expected output: diff = Warning: Diff output requires color.
using QuickPOMDPs
using POMDPModelTools: Deterministic
using POMDPTools: Deterministic
mountaincar = QuickMDP(
function (s, a, rng)
Expand Down

0 comments on commit c577b0c

Please sign in to comment.