首页 \ 问答 \ pymc3:使用NUTS(pymc3: using NUTS)

pymc3:使用NUTS(pymc3: using NUTS)

我想在不同的mcmc方法之间进行公平的比较,特别是我想比较我的方法和NUTS的采样性能。 但是,我认为pymc3中的采样函数具有许多设置/调整功能,可以改善采样算法超出原始方法的性能。

所以,我想知道是否有人能告诉我如何禁用这些调音。 简而言之,我只想要一个简单的NUTS算法(通过NUTS,我的意思是算法6:双平均的高效无U型转弯取样器)

谢谢


I want to have a fair comparison between different mcmc methods, particularly, I want to compare the sampling performance of my method with NUTS. However, I think the sampling function in pymc3 has lots of settings/tuning which improve the performance of the sampling algorithms beyond the original methods.

So, I was wondering if anyone could tell me how to disable those tunings. In short, I just want to have a simple NUTS algorithm (by NUTS, I mean Algorithm 6: Efficient No-U-Turn Sampler with Dual Averaging)

Thanks


原文:https://stackoverflow.com/questions/50175860
更新时间:2022-07-26 09:07

最满意答案

在嵌入之前对Blue进行采样的最简单方法实际上是在本地计算机上创建HTML页面。

将Blue嵌入到简单的HTML页面中,确保您的原始帐户设置还包括localhost,并使用http-server(或类似)在localhost(http-server -a localhost)上运行。 然后,您可以通过浏览器打开该HTML文件,从本地计算机上使用Blue进行探索(很可能是url将是localhost:8080 - 它将告诉您何时运行http-server使用它的端口)。

在生产中使用您的应用之前,请务必从您的帐户设置中删除localhost!

请务必查看文档以获取更多信息: http//developer.bodylabs.com/blue_reference.html


The easiest way to sample Blue before embedding is actually to make a practice HTML page on a local machine.

Embed Blue into a simple HTML page, make sure that your origin account settings also include localhost, and use http-server (or similar) to run on your localhost (http-server -a localhost) . You can then explore with Blue from your local machine by opening that HTML file from your browser (most likely the url will be localhost:8080 - it will tell you when you run the http-server what port to use it on).

Just be sure to remove localhost from your account settings before using your app in production!

Be sure to check out the documentation for more information: http://developer.bodylabs.com/blue_reference.html

相关问答

更多
  • Detector构造函数签名是: public Detector(DetectorFactory factory) 那么看一下DetectorFactory ,是一个没有getInstance()方法的单例: 你应该像这样创建你的探测器: Detector d = DetectorFactory.create(); 但如果你这样做,还不够...... com.cybozu.labs.langdetect.LangDetectException: need to load profiles 所以最小和完 ...
  • 如果test / webdriver实例将在您的情况下在远程计算机(browserstack或sauce)上运行,则必须在远程计算机上对代理服务器生成的代理进行身份验证以拦截流量。 我有类似的要求,我使用独立的BrowserMob实例进行设置。 下面是browserstack的工作示例代码及其本地测试二进制文件: 这将需要以下依赖项: com.browserstack browserstack-local ...
  • 如果您想继续使用当前的扩展系统设计,我将实现一个特定于您的每个事件的自定义EventArgs类。 通过这种方式,您可以传递各种配置,或简单地识别数据。 然后,您的扩展提供商可以根据传递的信息采取措施。 例如,他们可以配置为仅响应特定论坛等。 If you want to keep with the current extension system design, I would go to implementing a custom EventArgs class specific to each of y ...
  • 您可以访问https://labs.cognitive.microsoft.com/en-us/subscriptions并使用您的帐户,Hotmail,LinkedIn或GitHub登录,以检索Microsoft认证服务实验室密钥。 看起来像您包含的第一个URL中的自动生成的API参考具有不正确的配置文件链接。 You can retrieve your Microsoft Cognitive Services Labs keys by going to https://labs.cognitive.mi ...
  • 在嵌入之前对Blue进行采样的最简单方法实际上是在本地计算机上创建HTML页面。 将Blue嵌入到简单的HTML页面中,确保您的原始帐户设置还包括localhost,并使用http-server(或类似)在localhost(http-server -a localhost)上运行。 然后,您可以通过浏览器打开该HTML文件,从本地计算机上使用Blue进行探索(很可能是url将是localhost:8080 - 它将告诉您何时运行http-server使用它的端口)。 在生产中使用您的应用之前,请务必从您的 ...
  • 有可能! 您可以通过修改HTML / CSS代码并将小部件代码插入主题来将Blue小部件嵌入Shopify页面。 在文档( http://developer.bodylabs.com/blue_reference.html )中,这将是第6步。但是,我们目前正在更新此步骤,因此它应该看起来如下所示: