-
Notifications
You must be signed in to change notification settings - Fork 0
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
Numpyro sampler option, documentation, land/sea map fix, save trace fix #101
Conversation
I *think* tensorflow probability is needed to get truncated normal distributions in Numpyro, but I can't find a reference for this now.
The html wasn't rendering properly on github.
This name can be passed to `fixedbasisMCMC`, and then passed on to `data_processing_surface_notracer`, or it will be created based on the formula in `get_data.py`
- `skip_postprocess` will be used for profiling runs - `merged_data_only` can be used to merge data ahead of time; this will also be used for profiling performance
PBLH is being replaced by atmosphere_boundary_layer_thickness in OpenGHG v0.8. Also, the new merged data just stores "inlet", whereas old merged data also stored "inlet_height_magl" and "height".
`min_model_error` was also added to the attributes of the output dataset, so that the calculated value can be recovered. The `residual_error_method` function should probably be moved from `hbmcmc.py` once there is a location for other preprocessing functions.
Any NaNs after this point will cause errors in pymc.
@joe-pitt reports: error using weighted basis with fixed outer regions: [Yesterday 21:23] Joe Pitt
[Yesterday 21:24] Joe Pitt |
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.
It turns out the error Brendan mentioned only occurs for a certain flux file (or potentially a certain type of flux file), and it is actually giving the same behaviour on devel as on this branch. So it isn't an issue with these changes. I have successfully run a test ch4 inversion on this branch so I'm going to approve the PR.
This branch adds the option to use Numpyro's NUTS sampler in place of the pymc NUTS sampler. This seems to be 7-10x faster. This addresses issue #17 and the ACRG project issue #30, although profiling needs to be done to assess the speed improvements.
It also adds some documentation by expanding the readme file and adding a short overview (https://github.com/openghg/openghg_inversions/tree/numpyro-fixed-outer-regions)
There are fixes to two other issues as well:
save_trace
option was removed in a previous PR; it is restored in this PR.Also, a link to the DOI associated with releases was added to the readme file, and a test was added for the bucket/weighted basis function.