Hakaru-FLOLAC16
Hakaru-FLOLAC16 copied to clipboard
Some materials for "The taste of probabilistic programming and modeling" by Oleg Kiselyov at FLOLAC'16
Hakaru-FLOLAC16
- 埋込み確率プログラミング言語とその漸進評価
- Problems of the Lightweight Implementation of Probabilistic Programming
- The original FTP folder of these files
How to run these codes
-
Clone this repo (or just download it anyway)
git clone [email protected]:banacorn/Hakaru-FLOLAC16.git cd Hakaru-FLOLAC16
-
Enter GHCi
ghci Discrete1.hs
For example, you can play with those
DST
s withrunSample :: Int -> Dst a -> [a]
inDiscrete
*Discrete> runSample 10 twocoins [True,False,True,False,False,True,False,False,False,True]
-
You may need some of these packages:
mtl
,transformers
,random
cabal install mtl transformers random
Courtesy of Oleg Kiselyov.