Decrease waitbar refresh rates to not clutter the console output
parent
776c247b9b
commit
c5ab1c7f11
|
@ -54,7 +54,7 @@ if init
|
|||
|
||||
case 'random_walk_metropolis_hastings'
|
||||
posterior_sampler_options.parallel_bar_refresh_rate=50;
|
||||
posterior_sampler_options.serial_bar_refresh_rate=3;
|
||||
posterior_sampler_options.serial_bar_refresh_rate=20;
|
||||
posterior_sampler_options.parallel_bar_title='RWMH';
|
||||
posterior_sampler_options.serial_bar_title='RW Metropolis-Hastings';
|
||||
|
||||
|
@ -111,8 +111,8 @@ if init
|
|||
end
|
||||
|
||||
case 'tailored_random_block_metropolis_hastings'
|
||||
posterior_sampler_options.parallel_bar_refresh_rate=5;
|
||||
posterior_sampler_options.serial_bar_refresh_rate=1;
|
||||
posterior_sampler_options.parallel_bar_refresh_rate=50;
|
||||
posterior_sampler_options.serial_bar_refresh_rate=20;
|
||||
posterior_sampler_options.parallel_bar_title='TaRB-MH';
|
||||
posterior_sampler_options.serial_bar_title='TaRB Metropolis-Hastings';
|
||||
|
||||
|
@ -181,7 +181,7 @@ if init
|
|||
|
||||
case 'independent_metropolis_hastings'
|
||||
posterior_sampler_options.parallel_bar_refresh_rate=50;
|
||||
posterior_sampler_options.serial_bar_refresh_rate=3;
|
||||
posterior_sampler_options.serial_bar_refresh_rate=10;
|
||||
posterior_sampler_options.parallel_bar_title='IMH';
|
||||
posterior_sampler_options.serial_bar_title='Ind. Metropolis-Hastings';
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ end
|
|||
hh_fig = dyn_waitbar(0,'Please wait. Gibbs sampler...');
|
||||
set(hh_fig,'Name','Olsgibbs estimation.');
|
||||
for i = discarddraws+1:ndraws
|
||||
if ~mod(i,10)
|
||||
if ~mod(i,100)
|
||||
dyn_waitbar((i-discarddraws)/(ndraws-discarddraws),hh_fig,'Please wait. Gibbs sampler...');
|
||||
end
|
||||
% Set conditional distribution of β
|
||||
|
|
|
@ -518,8 +518,9 @@ for b=fpar:B
|
|||
end
|
||||
irun(irun_index) = 1;
|
||||
end
|
||||
|
||||
dyn_waitbar((b-fpar+1)/(B-fpar+1),h);
|
||||
if mod(b-fpar+1, 5)==0
|
||||
dyn_waitbar((b-fpar+1)/(B-fpar+1),h);
|
||||
end
|
||||
end
|
||||
|
||||
myoutput.ifil=ifil;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function ds = surgibbs(ds, param_names, beta0, A, ndraws, discarddraws, thin, eqtags, model_name)
|
||||
|
||||
% Implements Gibbs Samipling for SUR
|
||||
% Implements Gibbs Sampling for SUR
|
||||
%
|
||||
% INPUTS
|
||||
% ds [dseries] data
|
||||
|
@ -110,7 +110,7 @@ hh_fig = dyn_waitbar(0,'Please wait. Gibbs sampler...');
|
|||
set(hh_fig,'Name','Surgibbs estimation.');
|
||||
residdraws = zeros(floor((ndraws-discarddraws)/thin), nobs, m);
|
||||
for i = 1:ndraws
|
||||
if ~mod(i,10)
|
||||
if ~mod(i,100)
|
||||
dyn_waitbar(i/ndraws,hh_fig,'Please wait. Gibbs sampler...');
|
||||
end
|
||||
% Draw Omega, given X, Y, Beta
|
||||
|
|
Loading…
Reference in New Issue