Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Ratto
dynare
Commits
f51a5737
Commit
f51a5737
authored
3 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
mh_tune_jscale: fix display of stepsize and provide warning if no updating can occur.
parent
f5c5b05f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/calibrate_mh_scale_parameter.m
+1
-1
1 addition, 1 deletion
matlab/calibrate_mh_scale_parameter.m
matlab/initial_estimation_checks.m
+4
-0
4 additions, 0 deletions
matlab/initial_estimation_checks.m
with
5 additions
and
1 deletion
matlab/calibrate_mh_scale_parameter.m
+
1
−
1
View file @
f51a5737
...
...
@@ -73,7 +73,7 @@ while j<=options.maxiter
prtfrc
=
j
/
options
.
maxiter
;
% Update the waitbar
if
~
mod
(
j
,
10
)
dyn_waitbar
(
prtfrc
,
hh
,
sprintf
(
'Acceptance ratio [during last
500
]: %f [%f]'
,
isux
/
j
,
jsux
/
jj
));
dyn_waitbar
(
prtfrc
,
hh
,
sprintf
(
'Acceptance ratio [during last
%u
]: %f [%f]'
,
options
.
stepsize
,
isux
/
j
,
jsux
/
jj
));
end
% Adjust the value of the scale parameter.
if
~
mod
(
j
,
options
.
stepsize
)
...
...
This diff is collapsed.
Click to expand it.
matlab/initial_estimation_checks.m
+
4
−
0
View file @
f51a5737
...
...
@@ -290,6 +290,10 @@ if ~isequal(DynareOptions.mode_compute,11)
disp
([
'Initial value of the log posterior (or likelihood): '
num2str
(
-
fval
)]);
end
if
DynareOptions
.
mh_tune_jscale
.
status
&&
(
DynareOptions
.
mh_tune_jscale
.
maxiter
<
DynareOptions
.
mh_tune_jscale
.
stepsize
)
warning
(
'You specified mh_tune_jscale, but the maximum number of iterations is smaller than the step size. No update will take place.'
)
end
function
evaluate_expression
(
expression
,
M_
,
oo_
)
% function evaluate_expression(expression,M_,oo_)
%evaluates expressions relying on M_ and oo_ having their original names
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment