|
37 | 37 | # initial parameter
|
38 | 38 | init_x = randn(5)
|
39 | 39 | samples = sample(
|
40 |
| - ESSModel(prior, ℓ), ESS(), alg, 10, 5; progress=false, init_params=init_x |
| 40 | + ESSModel(prior, ℓ), ESS(), alg, 10, 5; progress=false, initial_params=init_x |
41 | 41 | )
|
42 | 42 | @test map(first, samples) == init_x
|
43 | 43 | end
|
44 | 44 |
|
45 | 45 | # initial parameter
|
46 | 46 | init_x = randn()
|
47 |
| - samples = sample(ESSModel(prior, ℓ), ESS(), 10; progress=false, init_params=init_x) |
| 47 | + samples = sample( |
| 48 | + ESSModel(prior, ℓ), ESS(), 10; progress=false, initial_params=init_x |
| 49 | + ) |
48 | 50 | @test first(samples) == init_x
|
49 | 51 | end
|
50 | 52 |
|
|
77 | 79 | # initial parameter
|
78 | 80 | init_x = randn(5)
|
79 | 81 | samples = sample(
|
80 |
| - ESSModel(prior, ℓ), ESS(), alg, 10, 5; progress=false, init_params=init_x |
| 82 | + ESSModel(prior, ℓ), ESS(), alg, 10, 5; progress=false, initial_params=init_x |
81 | 83 | )
|
82 | 84 | @test map(first, samples) == init_x
|
83 | 85 | end
|
84 | 86 |
|
85 | 87 | # initial parameter
|
86 | 88 | init_x = randn()
|
87 |
| - samples = sample(ESSModel(prior, ℓ), ESS(), 10; progress=false, init_params=init_x) |
| 89 | + samples = sample( |
| 90 | + ESSModel(prior, ℓ), ESS(), 10; progress=false, initial_params=init_x |
| 91 | + ) |
88 | 92 | @test first(samples) == init_x
|
89 | 93 | end
|
90 | 94 |
|
|
118 | 122 | # initial parameter
|
119 | 123 | init_x = [randn(1) for _ in 1:5]
|
120 | 124 | samples = sample(
|
121 |
| - ESSModel(prior, ℓvec), ESS(), alg, 10, 5; progress=false, init_params=init_x |
| 125 | + ESSModel(prior, ℓvec), |
| 126 | + ESS(), |
| 127 | + alg, |
| 128 | + 10, |
| 129 | + 5; |
| 130 | + progress=false, |
| 131 | + initial_params=init_x, |
122 | 132 | )
|
123 | 133 | @test map(first, samples) == init_x
|
124 | 134 | end
|
125 | 135 |
|
126 | 136 | # initial parameter
|
127 | 137 | init_x = randn(1)
|
128 | 138 | samples = sample(
|
129 |
| - ESSModel(prior, ℓvec), ESS(), 10; progress=false, init_params=init_x |
| 139 | + ESSModel(prior, ℓvec), ESS(), 10; progress=false, initial_params=init_x |
130 | 140 | )
|
131 | 141 | @test first(samples) == init_x
|
132 | 142 | end
|
|
161 | 171 | # initial parameter
|
162 | 172 | init_x = [randn(1) for _ in 1:5]
|
163 | 173 | samples = sample(
|
164 |
| - ESSModel(prior, ℓvec), ESS(), alg, 10, 5; progress=false, init_params=init_x |
| 174 | + ESSModel(prior, ℓvec), |
| 175 | + ESS(), |
| 176 | + alg, |
| 177 | + 10, |
| 178 | + 5; |
| 179 | + progress=false, |
| 180 | + initial_params=init_x, |
165 | 181 | )
|
166 | 182 | @test map(first, samples) == init_x
|
167 | 183 | end
|
168 | 184 |
|
169 | 185 | # initial parameter
|
170 | 186 | init_x = randn(1)
|
171 | 187 | samples = sample(
|
172 |
| - ESSModel(prior, ℓvec), ESS(), 10; progress=false, init_params=init_x |
| 188 | + ESSModel(prior, ℓvec), ESS(), 10; progress=false, initial_params=init_x |
173 | 189 | )
|
174 | 190 | @test first(samples) == init_x
|
175 | 191 | end
|
|
0 commit comments