简体   繁体   English

Edward2 实现 Edward 的 HMC 方法

[英]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.

相关问题 带有 TensorFlow Probability 的 Edward2 的简单哈密顿蒙特卡罗示例 - Simple Hamiltonian Monte Carlo Example with TensorFlow Probability's Edward2 爱德华的权重的L2正则化 - L2 regularization of weights in Edward 不能将Edward 1.3.5与Tensorflow 1.14.0一起使用 - Can not use Edward 1.3.5 with Tensorflow 1.14.0 是否可以采用 FEN 又名 forsyth-edward 符号并将其从黑色翻转为游戏并获胜为白色 - Is it possible to take a FEN aka forsyth-edward notation and flip it from black to play and win to white Python列表删除方法:如何实现? - Python list remove method: how's the implementation? 牛顿方法的 PyTorch 实现中的更新步骤 - Update step in PyTorch implementation of Newton's method python 点击框架——在oop的方法中自定义多命令实现 - python click framework - custom multi command implementation in oop's method Python的insert()方法与通过切片插入之间的实现和性能差异 - Implementation and performance difference between Python's insert() method and inserting by slicing 记录getLevelName方法的实现 - Logging implementation of getLevelName method TensorFlow:Dataset 的 apply 方法的简单自定义transformation_func 的示例实现 - TensorFlow: Example implementation of a simple custom transformation_func for Dataset's apply method
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM