Defined in tensorflow/contrib/bayesflow/python/ops/monte_carlo.py
.
Monte Carlo integration and helpers.
See the BayesFlow Monte Carlo (contrib) guide.
expectation(...)
: Computes the Monte-Carlo approximation of \(E_p[f(X)]\)
.
expectation_importance_sampler(...)
: Monte Carlo estimate of \\(E_p[f(Z)] = E_q[f(Z) p(Z) / q(Z)]\\)
.
expectation_importance_sampler_logspace(...)
: Importance sampling with a positive function, in log-space.
__cached__
__loader__
__spec__
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/bayesflow/monte_carlo