acerbilab / pyvbmc

PyVBMC: Variational Bayesian Monte Carlo algorithm for posterior and model inference in Python
https://acerbilab.github.io/pyvbmc/
BSD 3-Clause "New" or "Revised" License
114 stars 6 forks source link

Improved Logging #71

Closed Bobby-Huggins closed 2 years ago

Bobby-Huggins commented 2 years ago

Introduces an option logfilename to write vbmc optimization output to a log file. If logfilename is None (the default) no output file will be written.

Also introduces separate logging level options for logging to the file, and options for the log file write mode (write or append).

Also introduces logic to write the column headers once and only once to the file, even if re-writing them to stdout while plotting is on.

Cf. Issue #67