Last active
October 23, 2018 16:11
-
-
Save KKostya/b16016210394503cf9bb843024f3f3c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let aStayStrategy = (door,choice) => | |
switch(door,choice){ | (DoorA,Stay) => 1.0 | _ => 0.0 }; | |
expected_reward( | |
make_scenario_pmf(pDoorsBiased,aStayStrategy) | |
); | |
let cSwapStrategy = (door,choice) => | |
switch(door,choice){ | (DoorC,Swap) => 1.0 | _ => 0.0 }; | |
expected_reward( | |
make_scenario_pmf(pDoorsBiased,cSwapStrategy) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val aStayStrategy : door -> choice -> Q.t = <fun> | |
- : real = 600000 | |
val cSwapStrategy : door -> choice -> Q.t = <fun> | |
- : real = 800000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment