queso-0.56.0
MetropolisHastingsSGOptions.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008-2015 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef UQ_MH_SG_OPTIONS_H
26 #define UQ_MH_SG_OPTIONS_H
27 
28 #include <queso/Environment.h>
29 #include <queso/MLSamplingLevelOptions.h>
30 #include <queso/SequenceStatisticalOptions.h>
31 
32 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
33 #include <queso/BoostInputOptionsParser.h>
34 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
35 
36 #undef UQ_MH_SG_REQUIRES_INVERTED_COV_MATRICES
37 #define UQ_NOTHING_JUST_FOR_TEST_OF_SVN_ID 1
38 
39 #define UQ_MH_SG_FILENAME_FOR_NO_FILE "."
40 
41 // _ODV = option default value
42 #define UQ_MH_SG_HELP ""
43 #define UQ_MH_SG_DATA_OUTPUT_FILE_NAME_ODV UQ_MH_SG_FILENAME_FOR_NO_FILE
44 #define UQ_MH_SG_DATA_OUTPUT_ALLOW_ALL_ODV 0
45 #define UQ_MH_SG_DATA_OUTPUT_ALLOWED_SET_ODV ""
46 
47 #define UQ_MH_SG_TOTALLY_MUTE_ODV 0
48 #define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_NAME_ODV UQ_MH_SG_FILENAME_FOR_NO_FILE
49 #define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
50 #define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_NAME_ODV UQ_MH_SG_FILENAME_FOR_NO_FILE
51 #define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
52 #define UQ_MH_SG_LIST_OF_DISABLED_PARAMETERS_ODV ""
53 #define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_NAME_ODV UQ_MH_SG_FILENAME_FOR_NO_FILE
54 #define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
55 #define UQ_MH_SG_RAW_CHAIN_SIZE_ODV 100
56 #define UQ_MH_SG_RAW_CHAIN_GENERATE_EXTRA_ODV 0
57 #define UQ_MH_SG_RAW_CHAIN_DISPLAY_PERIOD_ODV 500
58 #define UQ_MH_SG_RAW_CHAIN_MEASURE_RUN_TIMES_ODV 1
59 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_PERIOD_ODV 0
60 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_NAME_ODV UQ_MH_SG_FILENAME_FOR_NO_FILE
61 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
62 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV 0
63 #define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV ""
64 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
65 #define UQ_MH_SG_RAW_CHAIN_COMPUTE_STATS_ODV 0
66 #endif
67 #define UQ_MH_SG_FILTERED_CHAIN_GENERATE_ODV 0
68 #define UQ_MH_SG_FILTERED_CHAIN_DISCARDED_PORTION_ODV 0.
69 #define UQ_MH_SG_FILTERED_CHAIN_LAG_ODV 1
70 #define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_NAME_ODV UQ_MH_SG_FILENAME_FOR_NO_FILE
71 #define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
72 #define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV 0
73 #define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV ""
74 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
75 #define UQ_MH_SG_FILTERED_CHAIN_COMPUTE_STATS_ODV 0
76 #endif
77 #define UQ_MH_SG_DISPLAY_CANDIDATES_ODV 0
78 #define UQ_MH_SG_PUT_OUT_OF_BOUNDS_IN_CHAIN_ODV 1
79 #define UQ_MH_SG_TK_USE_LOCAL_HESSIAN_ODV 0
80 #define UQ_MH_SG_TK_USE_NEWTON_COMPONENT_ODV 1
81 #define UQ_MH_SG_DR_MAX_NUM_EXTRA_STAGES_ODV 0
82 #define UQ_MH_SG_DR_LIST_OF_SCALES_FOR_EXTRA_STAGES_ODV ""
83 #define UQ_MH_SG_DR_DURING_AM_NON_ADAPTIVE_INT_ODV 1
84 #define UQ_MH_SG_AM_KEEP_INITIAL_MATRIX_ODV 0
85 #define UQ_MH_SG_AM_INIT_NON_ADAPT_INT_ODV 0
86 #define UQ_MH_SG_AM_ADAPT_INTERVAL_ODV 0
87 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_PERIOD_ODV 0
88 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_NAME_ODV UQ_MH_SG_FILENAME_FOR_NO_FILE
89 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
90 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOW_ALL_ODV 0
91 #define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOWED_SET_ODV ""
92 #define UQ_MH_SG_AM_ETA_ODV 1.
93 #define UQ_MH_SG_AM_EPSILON_ODV 1.e-5
94 #define UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR 0
95 #define UQ_MH_SG_BROOKS_GELMAN_LAG 100
96 #define UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD 1
97 #define UQ_MH_SG_OUTPUT_LOG_TARGET 1
98 #define UQ_MH_SG_DO_LOGIT_TRANSFORM 1
99 #define UQ_MH_SG_ALGORITHM "logit_random_walk"
100 #define UQ_MH_SG_TK "logit_random_walk"
101 
102 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
103 namespace boost {
104  namespace program_options {
105  class options_description;
106  }
107 }
108 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
109 
110 namespace QUESO {
111 
112 class BaseEnvironment;
113 
128 {
129 public:
130 
132 
133 
134 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
135  MhOptionsValues (const SsOptionsValues* alternativeRawSsOptionsValues,
136  const SsOptionsValues* alternativeFilteredSsOptionsValues);
137  MhOptionsValues (const SsOptionsValues* alternativeRawSsOptionsValues,
138  const SsOptionsValues* alternativeFilteredSsOptionsValues,
139  const BaseEnvironment * env, const char * prefix);
140 #else
141 
143 
144  MhOptionsValues ();
145 
147  MhOptionsValues(const BaseEnvironment * env, const char * prefix);
148 #endif
149 
151 
152  MhOptionsValues (const MhOptionsValues& src);
153 
155  virtual ~MhOptionsValues ();
157 
159 
163 
165  std::string m_prefix;
166 
168 
171  std::string m_help;
172 
174 
183  std::string m_dataOutputFileName;
184 
186 
193 
195 
198  std::set<unsigned int> m_dataOutputAllowedSet;
199 
202 
204 
208 
211 
213 
223 
226 
228 
231  std::set<unsigned int> m_parameterDisabledSet; // gpmsa2
232 
234 
243 
246 
248  unsigned int m_rawChainSize;
249 
251 
258 
260 
268 
270 
285 
288 
290 
299 
301 
319 
321 
331 
333  std::set<unsigned int> m_rawChainDataOutputAllowedSet;
334 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
335  bool m_rawChainComputeStats;
337 #endif
338 
340 
347 
349 
355  double m_filteredChainDiscardedPortion; // input or set during run time
356 
358 
362  unsigned int m_filteredChainLag; // input or set during run time
363 
365 
372 
375 
377 
387 
389  std::set<unsigned int> m_filteredChainDataOutputAllowedSet;
390 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
391  bool m_filteredChainComputeStats;
393 #endif
394 
397 
399 
412 
414 
438 
441 
443 
450  unsigned int m_drMaxNumExtraStages;
451 
453 
469  std::vector<double> m_drScalesForExtraStages;
470 
472 
492 
495 
497 
506 
508 
515  unsigned int m_amAdaptInterval;
516 
518 
533 
535 
539 
542 
545 
548 
560  double m_amEta;
561 
572  double m_amEpsilon;
573 
575 
589 
591 
598  unsigned int m_BrooksGelmanLag;
599 
602 
605 
608 
610  std::string m_algorithm;
611 
613  std::string m_tk;
614 
615 private:
616  // Cache a pointer to the environment.
618 
619 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
621 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
622 
624  std::string m_option_help;
625 
632 
634  std::string m_option_totallyMute;
644  std::string m_option_listOfDisabledParameters; // gpmsa2
667 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
668  std::string m_option_rawChain_computeStats;
670 #endif
685 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
686  std::string m_option_filteredChain_computeStats;
688 #endif
689  std::string m_option_displayCandidates;
719 
721  std::string m_option_am_eta;
723  std::string m_option_am_epsilon;
724 
729 
737  std::string m_option_algorithm;
739  std::string m_option_tk;
740 
742  void copy(const MhOptionsValues& src);
743 
744  // We pass the the passed environment to get access to the MPI ranks etc for
745  // sanity checks
746  void checkOptions(const BaseEnvironment * env);
747 
748  friend std::ostream & operator<<(std::ostream & os,
749  const MhOptionsValues & obj);
750 
751 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
752  friend class MetropolisHastingsSGOptions;
753  SsOptionsValues m_alternativeRawSsOptionsValues;
754  SsOptionsValues m_alternativeFilteredSsOptionsValues;
755 #endif
756 };
757 
773 {
774 public:
776 
777  MetropolisHastingsSGOptions(const BaseEnvironment& env, const char* prefix);
779 
781 
782  MetropolisHastingsSGOptions(const BaseEnvironment& env, const char* prefix, const MhOptionsValues& alternativeOptionsValues);
783 
786 
790 
792 
793  void scanOptionsValues();
795 
797  void print (std::ostream& os) const;
799 
802 
803 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
804  SequenceStatisticalOptions* m_rawChainStatisticalOptionsObj;
805  bool m_rawChainStatOptsInstantiated;
806  SequenceStatisticalOptions* m_filteredChainStatisticalOptionsObj;
807  bool m_filteredChainStatOptsInstantiated;
808 #endif
809  std::string m_prefix;
810 
811 private:
812 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
813  void defineMyOptions (boost::program_options::options_description& optionsDesc) const;
815 
817  void getMyOptionValues(boost::program_options::options_description& optionsDesc);
818 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
819 
821 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
822  boost::program_options::options_description* m_optionsDesc;
823 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
824 
825  std::string m_option_help;
826 
830 
831  std::string m_option_totallyMute;
836  std::string m_option_listOfDisabledParameters; // gpmsa2
848 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
849  std::string m_option_rawChain_computeStats;
850 #endif
858 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
859  std::string m_option_filteredChain_computeStats;
860 #endif
876 
878  std::string m_option_am_eta;
880  std::string m_option_am_epsilon;
881 
884 
888  std::string m_option_algorithm;
889  std::string m_option_tk;
890 };
891 
892 std::ostream& operator<<(std::ostream& os, const MetropolisHastingsSGOptions& obj);
893 
894 } // End namespace QUESO
895 
896 #endif // UQ_MH_SG_OPTIONS_H
MhOptionsValues & operator=(const MhOptionsValues &rhs)
Assignment operator; it copies rhs to this.
double m_filteredChainDiscardedPortion
What initial fraction of the filtered chain is discarded.
virtual ~MhOptionsValues()
Destructor.
std::vector< double > m_drScalesForExtraStages
The vector of scale factors for the proposal covariance matrix to use for delayed rejection...
bool m_displayCandidates
Toggle to tell QUESO whether or not to write proposal (candidate) state to output file...
std::string m_rawChainDataOutputFileName
If not &quot;.&quot;, filename to write the Markov chain to.
bool m_totallyMute
If true, zero output is written to files. Default is false.
bool m_putOutOfBoundsInChain
Flag to tell QUESO how chains should be upon generating a proposal that is out of the problem domain...
std::set< unsigned int > m_amAdaptedMatricesDataOutputAllowedSet
This option is a no-op. The default is the empty set.
std::string m_option_rawChain_dataInputFileType
Option name for MhOptionsValues::m_rawChainDataInputFileType. Option name is m_prefix + &quot;mh_rawChain_...
MhOptionsValues m_ov
This class is where the actual options are stored.
std::string m_option_initialProposalCovMatrix_dataInputFileName
Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileName. Option name is m_prefix...
unsigned int m_rawChainDataOutputPeriod
The frequency with which to write chain output. Defaults to 0.
std::string m_filteredChainDataOutputFileName
If not &quot;.&quot;, file name to save the filtered chain to. Default is &quot;.&quot;.
std::string m_option_rawChain_measureRunTimes
Option name for MhOptionsValues::m_rawChainMeasureRunTimes. Option name is m_prefix + &quot;mh_rawChain_me...
std::string m_rawChainDataOutputFileType
The filetype of m_rawChainDataOutputFileName.
bool m_drDuringAmNonAdaptiveInt
Do delayed rejection during the initial non-adaptive part of sampling?
void checkOptions(const BaseEnvironment *env)
std::string m_option_listOfDisabledParameters
Option name for MhOptionsValues::m_parameterDisabledSet. Option name is m_prefix + &quot;mh_listOfDisabled...
std::string m_option_am_eta
See MhOptionsValues::m_amEta.
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
std::string m_option_BrooksGelmanLag
Option name for MhOptionsValues::m_BrooksGelmanLag. Option name is m_prefix + &quot;mh_BrooksGelmanLag&quot;.
std::string m_initialPositionDataInputFileName
If not &quot;.&quot;, reads the contents of the file and uses that to start the MCMC. Default is &quot;...
std::string m_option_dr_listOfScalesForExtraStages
Option name for MhOptionsValues::m_drScalesForExtraStages. Option name is m_prefix + &quot;mh_dr_listOfSca...
unsigned int m_BrooksGelmanLag
The lag with which to compute the Brooks-Gelman convergence statistic.
std::string m_option_putOutOfBoundsInChain
Option name for MhOptionsValues::m_putOutOfBoundsInChain. Option name is m_prefix + &quot;mh_putOutOfBound...
friend std::ostream & operator<<(std::ostream &os, const MhOptionsValues &obj)
This class reads the options for the Metropolis-Hastings generator of samples from an input file...
bool m_outputLogTarget
Flag for deciding whether or not to dump log target values in output Default is true.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:197
std::string m_option_totallyMute
Option name for MhOptionsValues::m_totallyMute. Option name is m_prefix + &quot;mh_totallyMute&quot;.
unsigned int m_rawChainDisplayPeriod
The frequency with which to output diagnostic information.
std::string m_initialProposalCovMatrixDataInputFileName
If not &quot;.&quot;, reads the contents of the file as the initial proposal covariance matrix.
std::string m_option_am_epsilon
See MhOptionsValues::m_amEpsilon.
std::string m_option_am_eta
Option name for MhOptionsValues::m_amEta. Option name is m_prefix + &quot;mh_am_eta&quot;.
unsigned int m_enableBrooksGelmanConvMonitor
The frequency with which to compute the Brooks-Gelman convergence statistic.
std::string m_option_rawChain_displayPeriod
Option name for MhOptionsValues::m_rawChainDisplayPeriod. Option name is m_prefix + &quot;mh_rawChain_disp...
std::string m_option_tk
Option name for MhOptionsValues::m_tk. Option name is m_prefix + &quot;mh_tk&quot;.
std::string m_option_algorithm
Option name for MhOptionsValues::m_algorithm. Option name is m_prefix + &quot;mh_algorithm&quot;.
std::string m_option_filteredChain_generate
Option name for MhOptionsValues::m_filteredChainGenerate. Option name is m_prefix + &quot;mh_filteredChain...
bool m_tkUseLocalHessian
Flag to tell QUESO whether or not to use Hessian information for the proposal covariance matrix...
std::string m_dataOutputFileName
The base name of output files where the chain (and related information) will be written.
std::string m_option_am_adaptedMatrices_dataOutputFileType
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileType. Option name is m_prefix + &quot;mh...
bool m_filteredChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write filtered Markov chain output to a file...
std::set< unsigned int > m_parameterDisabledSet
Set of parameters that don&#39;t get sampled.
bool m_filteredChainGenerate
Toggle the option to save a filtered chain.
std::string m_option_help
Option name for MhOptionsValues::m_help. Option name is m_prefix + &quot;mh_help&quot;.
std::string m_option_rawChain_dataOutputAllowedSet
Option name for MhOptionsValues::m_rawChainDataOutputAllowedSet. Option name is m_prefix + &quot;mh_rawCha...
std::string m_option_enableBrooksGelmanConvMonitor
Option name for MhOptionsValues::m_enableBrooksGelmanConvMonitor. Option name is m_prefix + &quot;mh_enabl...
std::string m_option_outputLogTarget
Option name for MhOptionsValues::m_outputLogTarget. Option name is m_prefix + &quot;mh_outputLogTarget&quot;.
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
Gets the sequence options defined to the Metropolis-Hastings algorithm.
std::string m_option_am_adaptedMatrices_dataOutputAllowAll
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll. Option name is m_prefix + &quot;mh...
std::string m_rawChainDataInputFileType
The filetype of m_rawChainDataInputFileName. Only &quot;m&quot; (matlab) is currently supported. Default is &quot;m&quot;.
std::string m_amAdaptedMatricesDataOutputFileName
If not &quot;.&quot;, this is the file to write adapted proposal covariance matrices to. Default is &quot;...
std::string m_option_dataOutputFileName
Option name for MhOptionsValues::m_dataOutputFileName. Option name is m_prefix + &quot;mh_dataOutputFileNa...
std::string m_initialProposalCovMatrixDataInputFileType
The filetype of m_initialProposalCovMatrixDataInputFileName. Only &quot;m&quot; (matlab) is currently supported...
std::string m_option_filteredChain_dataOutputAllowAll
Option name for MhOptionsValues::m_filteredChainDataOutputAllowAll. Option name is m_prefix + &quot;mh_fil...
std::string m_option_rawChain_generateExtra
Option name for MhOptionsValues::m_rawChainGenerateExtra. Option name is m_prefix + &quot;mh_rawChain_gene...
std::string m_option_rawChain_dataOutputFileType
Option name for MhOptionsValues::m_rawChainDataOutputFileType. Option name is m_prefix + &quot;mh_rawChain...
unsigned int m_amInitialNonAdaptInterval
The number of initial samples to do without adapting the proposal covariance matrix.
std::string m_option_tk_useLocalHessian
Option name for MhOptionsValues::m_tkUseLocalHessian. Option name is m_prefix + &quot;mh_tk_useLocalHessia...
std::string m_option_am_adaptedMatrices_dataOutputFileName
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileName. Option name is m_prefix + &quot;mh...
std::string m_option_doLogitTransform
Option name for MhOptionsValues::m_doLogitTransform. Option name is m_prefix + &quot;mh_doLogitTransform&quot;...
std::string m_option_dataOutputAllowAll
Option name for MhOptionsValues::m_dataOutputAllowAll. Option name is m_prefix + &quot;mh_dataOutputAllowA...
MhOptionsValues()
Default constructor.
std::string m_tk
Which transition kernel to use for MCMC. Default is &quot;random_walk&quot;.
std::string m_option_dataOutputAllowedSet
Option name for MhOptionsValues::m_dataOutputAllowedSet. Option name is m_prefix + &quot;mh_dataOutputAllo...
std::string m_algorithm
Which algorithm to use for the MCMC. Default is &quot;random_walk&quot;.
std::string m_option_am_epsilon
Option name for MhOptionsValues::m_amEpsilon. Option name is m_prefix + &quot;mh_am_epsilon&quot;.
bool m_outputLogLikelihood
Flag for deciding whether or not to dump log likelihood values in output. Default is true...
This class provides options for each level of the Multilevel sequence generator if no input file is a...
unsigned int m_drMaxNumExtraStages
The number of delayed rejection stages to do. Default is 0.
std::string m_option_displayCandidates
Option name for MhOptionsValues::m_displayCandidates. Option name is m_prefix + &quot;mh_displayCandidates...
std::string m_help
If non-empty string, print options and values to the output file.
std::string m_initialPositionDataInputFileType
The filetype of m_initialPositionDataInputFileName. Only &quot;m&quot; (matlab) is currently supported...
std::string m_rawChainDataInputFileName
Filename for reading an already-produced Markov chain.
void scanOptionsValues()
It scans the option values from the options input file.
std::string m_option_am_initialNonAdaptInterval
Option name for MhOptionsValues::m_amInitialNonAdaptInterval. Option name is m_prefix + &quot;mh_am_initia...
std::string m_prefix
Prefix for input file option names. Prepends all options for this class.
std::string m_option_outputLogLikelihood
Option name for MhOptionsValues::m_outputLogLikelihood. Option name is m_prefix + &quot;mh_outputLogLikeli...
std::string m_filteredChainDataOutputFileType
The filetype of m_filteredChainDataOutputFileName. Only &quot;m&quot; (matlab) is currently supported...
std::string m_option_rawChain_dataOutputFileName
Option name for MhOptionsValues::m_rawChainDataOutputFileName. Option name is m_prefix + &quot;mh_rawChain...
std::string m_option_initialPosition_dataInputFileType
Option name for MhOptionsValues::m_initialPositionDataInputFileType. Option name is m_prefix + &quot;mh_in...
std::string m_option_filteredChain_dataOutputAllowedSet
Option name for MhOptionsValues::m_filteredChainDataOutputAllowedSet. Option name is m_prefix + &quot;mh_f...
std::string m_option_filteredChain_discardedPortion
Option name for MhOptionsValues::m_filteredChainDiscardedPortion. Option name is m_prefix + &quot;mh_filte...
boost::program_options::options_description * m_optionsDesc
bool m_dataOutputAllowAll
If true, all processes write output and m_dataOutputAllowedSet is ignored.
bool m_rawChainGenerateExtra
If true, extra chain information is computed/stored.
std::string m_amAdaptedMatricesDataOutputFileType
The filetype of m_amAdaptedMatricesDataOutputFileName. Only &quot;m&quot; (matlab) is currently supported...
MetropolisHastingsSGOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
bool m_rawChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write Markov chain output to a file...
std::string m_option_tk_useNewtonComponent
Option name for MhOptionsValues::m_tkUseNewtonComponent. Option name is m_prefix + &quot;mh_tk_useNewtonCo...
std::string m_option_initialProposalCovMatrix_dataInputFileType
Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileType. Option name is m_prefix...
std::string m_option_initialPosition_dataInputFileName
Option name for MhOptionsValues::m_initialPositionDataInputFileName. Option name is m_prefix + &quot;mh_in...
unsigned int m_filteredChainLag
Set the lag for the filtered chain. Default is 1.
double m_amEta
Proposal covariance scaling factor, usually 2.4 * 2.4 / d.
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
Defines the options for the Metropolis-Hastings generator of samples as the default options...
std::set< unsigned int > m_dataOutputAllowedSet
The set of MPI ranks that can write output. See m_dataOutputAllowAll.
bool m_tkUseNewtonComponent
This option is a no-op. Default is true.
unsigned int m_rawChainSize
The size of the chain (number of posterior samples) to generate. Default is 100.
void print(std::ostream &os) const
It prints the option values.
std::string m_option_dr_maxNumExtraStages
Option name for MhOptionsValues::m_drMaxNumExtraStages. Option name is m_prefix + &quot;mh_dr_maxNumExtraS...
BoostInputOptionsParser * m_parser
This class provides options for the Metropolis-Hastings generator of samples if no input file is avai...
std::string m_option_dr_duringAmNonAdaptiveInt
Option name for MhOptionsValues::m_drDuringAmNonAdaptiveInt. Option name is m_prefix + &quot;mh_dr_duringA...
std::set< unsigned int > m_filteredChainDataOutputAllowedSet
The set of MPI ranks that will write filtered Markov chain output to a file. See also m_filteredChain...
bool m_amAdaptedMatricesDataOutputAllowAll
This option is a no-op. The default is false.
std::string m_option_rawChain_dataOutputPeriod
Option name for MhOptionsValues::m_rawChainDataOutputPeriod. Option name is m_prefix + &quot;mh_rawChain_d...
std::string m_option_rawChain_dataOutputAllowAll
Option name for MhOptionsValues::m_rawChainDataOutputAllowAll. Option name is m_prefix + &quot;mh_rawChain...
bool m_rawChainMeasureRunTimes
If true, measures timings spent in various chain computions and writes them to the output file...
std::string m_option_am_adaptedMatrices_dataOutputPeriod
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod. Option name is m_prefix + &quot;mh_a...
double m_amEpsilon
Regularisation parameter for the DRAM covariance matrix.
bool m_doLogitTransform
Flag for deciding whether or not to do logit transform of bounded domains Default is true...
std::set< unsigned int > m_rawChainDataOutputAllowedSet
The set of MPI ranks that will write Markov chain output to a file. See also m_rawChainDataOutputAllo...
std::string m_option_am_keepInitialMatrix
Option name for MhOptionsValues::m_amKeepInitialMatrix. Option name is m_prefix + &quot;mh_am_keepInitialM...
std::string m_option_filteredChain_lag
Option name for MhOptionsValues::m_filteredChainLag. Option name is m_prefix + &quot;mh_filteredChain_lag&quot;...
unsigned int m_amAdaptInterval
The frequency at which to adapt the proposal covariance matrix.
std::string m_option_am_adaptedMatrices_dataOutputAllowedSet
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet. Option name is m_prefix + &quot;...
std::string m_option_filteredChain_dataOutputFileType
Option name for MhOptionsValues::m_filteredChainDataOutputFileType. Option name is m_prefix + &quot;mh_fil...
bool m_amKeepInitialMatrix
This option is a no-op. The default is false.
void copy(const MhOptionsValues &src)
Copies the option values from src to this.
std::string m_option_am_adaptInterval
Option name for MhOptionsValues::m_amAdaptInterval. Option name is m_prefix + &quot;mh_am_adaptInterval&quot;.
std::string m_option_rawChain_size
Option name for MhOptionsValues::m_rawChainSize. Option name is m_prefix + &quot;mh_rawChain_size&quot;.
unsigned int m_amAdaptedMatricesDataOutputPeriod
The frequency (after m_amInitialNonAdaptInterval samples are done) of printing the last adapted propo...
std::string m_option_rawChain_dataInputFileName
Option name for MhOptionsValues::m_rawChainDataInputFileName. Option name is m_prefix + &quot;mh_rawChain_...
std::string m_option_filteredChain_dataOutputFileName
Option name for MhOptionsValues::m_filteredChainDataOutputFileName. Option name is m_prefix + &quot;mh_fil...

Generated on Tue Nov 29 2016 10:53:11 for queso-0.56.0 by  doxygen 1.8.5