Skip to content

Commit c356cf8

Browse files
committed
Tidying, fixing Project.toml, correcting tests.
1 parent dc711f2 commit c356cf8

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

Project.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@ name = "AdvancedMH"
22
uuid = "5b7e9947-ddc0-4b3f-9b55-0d8042f74170"
33
version = "0.1.0"
44

5-
[compat]
6-
julia="1"
7-
AbstractMCMC="0.1"
8-
Distributions="0.21"
9-
MCMCChains="1, 0.4"
10-
Reexport="0.2"
11-
125
[deps]
136
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
147
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
158
MCMCChains = "c7f686f2-ff18-58e9-bc7b-31028e88f75d"
169
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1710
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1811
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
12+
13+
[extras]
1914
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
15+
16+
[compat]
17+
AbstractMCMC = "0.1"
18+
Distributions = "0.21"
19+
MCMCChains = "1, 0.4"
20+
Reexport = "0.2"
21+
julia = "1"

chain.png

Whitespace-only changes.

test/runtests.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
using Test
22
using AdvancedMH
33
using Random
4+
using Distributions
5+
using Random
46

57
@testset "AdvancedMH" begin
8+
# Set a seed
9+
Random.seed!(1234)
10+
611
# Generate a set of data from the posterior we want to estimate.
7-
data = rand(Normal(5, 3), 30)
12+
data = rand(Normal(0, 1), 300)
813

914
# Define the components of a basic model.
1015
insupport(θ) = θ[2] >= 0

0 commit comments

Comments
 (0)