metropolis: fixing bug (thanks to J. Pfeifer)
parent
797b387f12
commit
96384e630d
|
@ -121,7 +121,7 @@ end
|
||||||
if any(isnan(bayestopt_.jscale))
|
if any(isnan(bayestopt_.jscale))
|
||||||
if exist([ModelName '_optimal_mh_scale_parameter.mat'])% This file is created by mode_compute=6.
|
if exist([ModelName '_optimal_mh_scale_parameter.mat'])% This file is created by mode_compute=6.
|
||||||
load([ModelName '_optimal_mh_scale_parameter'])
|
load([ModelName '_optimal_mh_scale_parameter'])
|
||||||
proposal_covariance_Choleksy_decomposition = d*Scale;
|
proposal_covariance_Cholesky_decomposition = d*Scale;
|
||||||
else
|
else
|
||||||
error('mh:: Something is wrong. I can''t figure out the value of the scale parameter.')
|
error('mh:: Something is wrong. I can''t figure out the value of the scale parameter.')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue