[英]Edward2 implementation of Edward's HMC method
Edward1 contained a method HMC with with the following syntax: Edward1 包含一个方法 HMC,其语法如下:
inference = ed.HMC({z: qz})
inference.run()
I'm having difficulty tracking down the migration for this.我很难为此追踪迁移。 Neither Edward2 nor TPF contain this package.
Edward2 和 TPF 均不包含此 package。 When looking up the migration instruction on the Edward project's page, the documentation 404s out.
在 Edward 项目页面上查找迁移说明时,文档 404s out。 The closest implementation in TFP that I have found is:
我发现的 TFP 中最接近的实现是:
ed2.mcmc.HamiltonianMonteCarlo()
However this take in params that are significantly different from the Edward1 package.然而,这包含与 Edward1 package 显着不同的参数。 The code example I am working off is linked .
我正在处理的代码示例已链接。 There is no updated version of this available in the TFP example repos.
TFP 示例存储库中没有可用的更新版本。
Can anyone explain what the implementation of this method is in Edward2?谁能解释一下这个方法在 Edward2 中的实现是什么? Has it been entirely replaced/no longer exist?
它是否已被完全替换/不再存在?
According to the docs here - https://github.com/google/edward2/blob/master/Upgrading_From_Edward_To_Edward2.md根据这里的文档 - https://github.com/google/edward2/blob/master/Upgrading_From_Edward_To_Edward2.md
the HMC available through tensorflow-probability replaces the edward implementation.通过 tensorflow-probability 可用的 HMC 取代了 edward 实现。 Details here: https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/HamiltonianMonteCarlo
详细信息: https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/HamiltonianMonteCarlo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.