@@ -204,7 +204,7 @@ def test_parallel_start(self):
204
204
tune = 5 ,
205
205
cores = 2 ,
206
206
discard_tuned_samples = False ,
207
- start = [{"x" : [10 , 10 ]}, {"x" : [- 10 , - 10 ]}],
207
+ initvals = [{"x" : [10 , 10 ]}, {"x" : [- 10 , - 10 ]}],
208
208
random_seed = self .random_seed ,
209
209
)
210
210
assert idata .warmup_posterior ["x" ].sel (chain = 0 , draw = 0 ).values [0 ] > 0
@@ -226,7 +226,7 @@ def test_reset_tuning(self):
226
226
tune = 50
227
227
chains = 2
228
228
start , step = pm .sampling .init_nuts (chains = chains , random_seed = [1 , 2 ])
229
- pm .sample (draws = 2 , tune = tune , chains = chains , step = step , start = start , cores = 1 )
229
+ pm .sample (draws = 2 , tune = tune , chains = chains , step = step , initvals = start , cores = 1 )
230
230
assert step .potential ._n_samples == tune
231
231
assert step .step_adapt ._count == tune + 1
232
232
@@ -403,12 +403,12 @@ def test_sample_find_MAP_does_not_modify_start():
403
403
404
404
# make sure sample does not modify the start dict
405
405
start = {"untransformed" : 0.2 }
406
- pm .sample (draws = 10 , step = pm .Metropolis (), tune = 5 , start = start , chains = 3 )
406
+ pm .sample (draws = 10 , step = pm .Metropolis (), tune = 5 , initvals = start , chains = 3 )
407
407
assert start == {"untransformed" : 0.2 }
408
408
409
409
# make sure sample does not modify the start when passes as list of dict
410
410
start = [{"untransformed" : 2 }, {"untransformed" : 0.2 }]
411
- pm .sample (draws = 10 , step = pm .Metropolis (), tune = 5 , start = start , chains = 2 )
411
+ pm .sample (draws = 10 , step = pm .Metropolis (), tune = 5 , initvals = start , chains = 2 )
412
412
assert start == [{"untransformed" : 2 }, {"untransformed" : 0.2 }]
413
413
414
414
0 commit comments