File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,20 @@ name = "AdvancedMH"
2
2
uuid = " 5b7e9947-ddc0-4b3f-9b55-0d8042f74170"
3
3
version = " 0.1.0"
4
4
5
- [compat ]
6
- julia =" 1"
7
- AbstractMCMC =" 0.1"
8
- Distributions =" 0.21"
9
- MCMCChains =" 1, 0.4"
10
- Reexport =" 0.2"
11
-
12
5
[deps ]
13
6
AbstractMCMC = " 80f14c24-f653-4e6a-9b94-39d6b0f70001"
14
7
Distributions = " 31c24e10-a181-5473-b8eb-7969acd0382f"
15
8
MCMCChains = " c7f686f2-ff18-58e9-bc7b-31028e88f75d"
16
9
Random = " 9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
17
10
Reexport = " 189a3867-3050-52da-a836-e630ba90ab69"
18
11
Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
12
+
13
+ [extras ]
19
14
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"
Original file line number Diff line number Diff line change 1
1
using Test
2
2
using AdvancedMH
3
3
using Random
4
+ using Distributions
5
+ using Random
4
6
5
7
@testset " AdvancedMH" begin
8
+ # Set a seed
9
+ Random. seed! (1234 )
10
+
6
11
# 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 )
8
13
9
14
# Define the components of a basic model.
10
15
insupport (θ) = θ[2 ] >= 0
You can’t perform that action at this time.
0 commit comments