Commit 3c220480 authored by Christian Weilbach's avatar Christian Weilbach

More cleanups, bump Anglican.

parent 8a4b04b8
......@@ -21,13 +21,14 @@ Please take a look at the tests for now.
## TODO
- investigate HMC standard deviation mismatch
- support sets
- fix proper primitive lookup without eval
- investigate deterministic exp inlining
## License
Copyright © 2018 Christian Weilbach
Copyright © 2018-2019 Christian Weilbach
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.
......@@ -4,6 +4,6 @@
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.10.0"]
[anglican "1.0.0"]]
[anglican "1.1.0"]]
:min-lein-version "2.0.0")
......@@ -43,9 +43,8 @@
(drop 1000)
(map :result)
(take 10000))]
(prn "exercise 1:" (time (mean foppl)) (mean anglican))
(is (tol? (mean foppl) (mean anglican)))
(is (tol? (std foppl) (std anglican))))))
(is (tol? (mean foppl) (mean anglican)))
(is (tol? (std foppl) (std anglican))))))
(deftest exercise-2-test
......
......@@ -41,7 +41,7 @@
(drop 10000)
(map :result)
(take 100000))]
(prn "exercise 1:" (mean foppl) (mean anglican))
#_(prn "exercise 1:" (mean foppl) (mean anglican))
(is (tol? (mean foppl) (mean anglican)))
(is (tol? (std foppl) (std anglican))))))
......@@ -86,7 +86,7 @@
(map :result)
(take 200000))]
(prn "exercise 2:" (mean foppl) (mean anglican))
#_(prn "exercise 2:" (mean foppl) (mean anglican))
(is (tol? (mean (map first foppl)) (mean (map first anglican))))
(is (tol? (mean (map second foppl)) (mean (map second anglican))))
......@@ -134,7 +134,7 @@
(take 200000)
(map #(if % 1.0 0.0)))]
(prn "exercise 3:" (mean foppl) (mean anglican))
#_(prn "exercise 3:" (mean foppl) (mean anglican))
(is (tol? (mean foppl)
(mean anglican)))
......@@ -200,7 +200,7 @@
(take 10000)
(map #(if % 1.0 0.0)))]
(prn "exercise 4:" (mean foppl) (mean anglican))
#_(prn "exercise 4:" (mean foppl) (mean anglican))
(is (tol? (mean foppl)
(mean anglican)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment