Codes for performing variational inference for Bayesian Inverse Problems that involve PDEs.
- To run MCMC methods, run
python mcmc_launcher.py
with appropriate flags. - To run VB methods, run
python vi_launcher.py
with appropriate flags.
Note that one needs Python bindings for an FEM solves. The python must be called poisson_1d_fem_driver
to be able to perform inference and needs to implement the following methods:
set_data_gen_seed(data_seed)
set_params(kappa)
get_log_lik()
get_log_lik_grad()
get_param_coords()
(this is the coordinates of the centroids of elements for the discretisation of kappa)generate_observations(kappa)
get_solution_mean()
get_observations()