Correction term for Hessian uncertainty - #25
Open
NPounder wants to merge 4 commits into
Open
Conversation
jgomezdans
reviewed
Jan 9, 2018
|
|
||
|
|
||
| def hessian_correction(gp, x0,P_inv, innovation, mask, state_mask, band, nparams): | ||
| C_obs_inv = P_inv.diagonal()[state_mask.flatten()] |
Owner
There was a problem hiding this comment.
Hmmm... I think this isn't correct, as P_inv does have the prior term and the observational term (which is the one you're after). I think what is needed might be in the observations object, in field uncertainty, but I need to check this
Contributor
Author
There was a problem hiding this comment.
Ah, yes, I think you are right. I'll look into it. The functions will be fine (bar - renaming the variable for clarity)- just need to pass the correct uncertainty. (Or pass observations - in which case the function does need editing.)
Contributor
Author
There was a problem hiding this comment.
Actually - I do pass in R_mat - the observation uncertainty. So the code is correct just with poorly named variables. I will fix that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deals with the Hessian correction described in #24 although not the combination of two bands that @jgomezdans is handling.
Also some minor modifications with import statements to match previous commit changes.