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

feat: load and validate basic and advanced vbmc options #18

Closed Solosneros closed 3 years ago

Solosneros commented 3 years ago

I added two methods to options and called them in vbmc.__init__() so that VBMC uses all options (basic + advanced) and all the options are validated for typos.

Furthermore, I refactored the class to use a helper method _read_config_file(self, options_path: str) so that we do not have to implement the loading of the options in two methods and removed two options from pyvbmc that are according to the MATLAB version experimental and have been implemented by accident. (The check works, you should have seen my face, after three tests failed 🤦 😂) Finally, I added the custom CSS of Sphinx that is already used in gpyreg.