-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WAIC #230
base: develop
Are you sure you want to change the base?
WAIC #230
Conversation
Hi @KSkwarczynski, thank you for contributing to MaCh3! Please wait for MaCh3 developers to review your PR. If no one answers within a week, please message people from this list: https://github.com/orgs/mach3-software/teams/mach3admin . While waiting, please enjoy this Use this action on your projects. Use jokes on issues instead. |
…igng thus WAIC is no longer negative
mcmc/SampleSummary.cpp
Outdated
// **************** | ||
MACH3LOG_INFO("******************************"); | ||
switch(Criterion) { | ||
// TSpline3 (third order spline in ROOT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this comment really belong here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no crap...
@@ -2615,7 +2541,61 @@ void SampleSummary::StudyDIC() { | |||
const double DIC_stat = Dhat + 2 * p_D; | |||
MACH3LOG_INFO("Effective number of parameters following DIC formalism is equal to: {:.2f}", p_D); | |||
MACH3LOG_INFO("DIC test statistic = {:.2f}", DIC_stat); | |||
MACH3LOG_INFO("******************************"); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you refer to "equation 3" later on in the code, please put the reference in the header before the function declaration, or here in the implementation before the function declaration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are in header file this way it should be readable in doxygen
Line 153 in 01451f0
/// @cite Gelman2014 |
Pull request description
Implement WAIC based on Gellman paper
https://arxiv.org/pdf/1307.5928
Changes or fixes
-Extend usage of vectors instead of raw pointers
Examples
Using some dummy values I obtained WAIC very similiar to DIC. It make sense both methods give similair results
[Edit]
WAIC after Fix