Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Stéphane Adjemian
dynare
Commits
1d6961cc
Commit
1d6961cc
authored
9 years ago
by
Marco Ratto
Committed by
Johannes Pfeifer
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
initialize mode field in slice sampler options
parent
e5ab7ed9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/check_posterior_sampler_options.m
+3
-3
3 additions, 3 deletions
matlab/check_posterior_sampler_options.m
matlab/global_initialization.m
+1
-0
1 addition, 0 deletions
matlab/global_initialization.m
with
4 additions
and
3 deletions
matlab/check_posterior_sampler_options.m
+
3
−
3
View file @
1d6961cc
...
...
@@ -304,10 +304,10 @@ if init,
% options_.mh_posterior_mode_estimation = 0;
% this is done below, but perhaps preprocessing should do this?
if
~
isfield
(
posterior_sampler_options
,
'mode'
),
posterior_sampler_options
.
mode
=
[];
else
% multimodal case
if
~
isempty
(
posterior_sampler_options
.
mode
)
% multimodal case
posterior_sampler_options
.
rotated
=
1
;
posterior_sampler_options
.
WR
=
[];
end
% posterior_sampler_options = set_default_option(posterior_sampler_options,'mode_files',[]);
...
...
This diff is collapsed.
Click to expand it.
matlab/global_initialization.m
+
1
−
0
View file @
1d6961cc
...
...
@@ -476,6 +476,7 @@ options_.posterior_sampler_options.slice.slice_initialize_with_mode=0;
options_
.
posterior_sampler_options
.
slice
.
use_mh_covariance_matrix
=
0
;
options_
.
posterior_sampler_options
.
slice
.
WR
=
[];
options_
.
posterior_sampler_options
.
slice
.
mode_files
=
[];
options_
.
posterior_sampler_options
.
slice
.
mode
=
[];
options_
.
posterior_sampler_options
.
slice
.
initial_step_size
=
0.8
;
% Independent Metropolis-Hastings
options_
.
posterior_sampler_options
.
imh
.
proposal_distribution
=
'rand_multivariate_normal'
;
...
...
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