-
Notifications
You must be signed in to change notification settings - Fork 26
New sampler API #70
base: master
Are you sure you want to change the base?
New sampler API #70
Conversation
* start InferenceFile -> BaseInferenceFile * rename hdf.py base_hdf.py * add parse_parameters function * add module for base mcmc io * make _read_samples_data the abstract method * added read_samples_data to base_mcmc * add emcee file handling * replace read/write functions with io in BaseSampler * add checkpoint requirement; rename samples raw_samples * start updating emcee * move emcee_pt to it's own module * add base_mcmc (needs work) * start changing the base sampler api * add write_metadata to models * move setting up checkpoint and run interval to sampler methods * rearrange read/write functions; add checkpoint and finalize methods; add run method to base_mcmc * fix whitespace * add acl support * update executable * add finalize to emcee, fix typos * change write_posterior to expect filename, not file * change burn in module to just have functions * start to define burn in support class * move burn in class to burn_in module; add evaluate * add write burn in to io * add from_config for burn-in class * more support for burn-in, calculation of independent samples * add thin_start/interval/end to the hdf file attrs * fix typos, whitespace in burn_in * fix whitespace, typos in base_hdf * rename EnsembleMCMCIO to MCMCIO; fix whitespace * fix typo * fix whitespace * write filetype to inference hdf files; provide a loadfile function * fix some import errors * remove sampler_class from io to avoid circular imports * fix bugs * fix bugs, move niterations/nsamples into config file * add halfchain, posterior_step, min_iterations back to burn_in * fix bugs to get acl working post burn in * fix bugs in nacl burn in test * write more information to the logging messages * fix bugs in min_iterations burn-in test * fix more bugs * fix pep8 issues * fix bugs for running with data * whitespace
* move results from cli functions to io module; add ability to specify different options for different input files * make write_kwargs_to_attrs a classmethod to cyclic imports * use argparse action to parse parameters option * move injections_from_cli to __init__; add a read_injections method to base_hdf * use parameters opt to load parameters in base_mcmc * move get_file_type to io; fix bugs * fix import error * create a custom ArgumentParser * allow input-file option to accept labels * move param parsing to option_utils and remove unused functions * update create_multidim plot * update plot_posterior * switch from normed to density to please matplotlib * update plot_posterior * fix plotting injection parameters * move thin options to base_mcmc; add ability to skip arguments * update plot_movie * fix pep8 issues
Hello @cdcapano! Thanks for updating the PR.
Comment last updated on September 25, 2018 at 10:29 Hours UTC |
* fix a bug in base_mcmc hdf and add docs * fix docs in emcee io * add global call method for logprior * add base_multitemper sampler methods and io * move some config loading to base_mcmc * remove unnecessary import * add support for multi tempered samplers to burn_in * update emcee_pt * add imports to module __init__s * remove note from executable * add emcee_pt to io * fix import errors * make sure stats are written out with the correct dtype * fix bugs * fix more bugs * create an action for parsing temps arg * make sure fields is a list * fix pep8 issues
This is a PR to track differences between the
new_sampler_api
branch andmaster
. Any PRs merged onto thenew_sampler_api
branch will automatically be picked up in this PR. Once we are happy that the changes are ready to be merged on to master, it should be merged through this PR.So far this branch includes PR #68. In no particular order, things left to do are:
gwin_extract_samples
.emcee_pt
.kombine
.mcmc
.New samplers may also be added in this PR to test the flexibility of the new API, but that's not a requirement before this can be merged to master.