Module: tf.contrib.bayesflow.monte_carlo

Monte Carlo integration and helpers.

Use tfp.monte_carlo instead.

Functions

expectation(...): Computes the Monte-Carlo approximation of Ep[f(X)]. (deprecated)

expectation_importance_sampler(...): Monte Carlo estimate of Ep[f(Z)]=Eq[f(Z)p(Z)/q(Z)].

expectation_importance_sampler_logspace(...): Importance sampling with a positive function, in log-space.