eggplantbren / NestedSampling.hs

Classic Nested Sampling in Haskell.
MIT License
6 stars 3 forks source link

Organization and logging improvements. #11

Closed jtobin closed 7 years ago

jtobin commented 7 years ago

This should probably be two PRs but alas.

I think these are good improvements to make in the direction of releasing this bad boy as a proper library with rock-solid usability and good defaults and all that. Check 'em out.

Changes

Reorganization (bfeb2a4):

I reckon the 'reorganize examples' commit improves the way things are organized. In particular, models like spike/slab and Rosenbrock are not included in the library proper and instead are consigned to the test suites (which double as a sort of repository of examples).

Logging (other commits):

I've made a number of (I think) improvements to logging. Check out the rest of the individual commit descriptions for details here.

Of particular note here, I've changed the output that currently goes in sample_info.txt to CSV and tweaked default file names.

jtobin commented 7 years ago

Hmm, I just noticed that the log prior weight formerly being spit out in sample_info.txt is not actually equivalent to ln(X) that we calculate from a given Sampler, so that information is no longer being dumped to file.

It's pretty trivial to spit that out though, or also include log posterior weight, etc. I'll let you chime in on what you'd like to see in the output.