colaboratory在安装和导入后不会确认arviz [英] colaboratory will not acknowledge arviz after installation and import

查看:122
本文介绍了colaboratory在安装和导入后不会确认arviz的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Google的实验室中,已安装的arviz然后确实导入了arviz,而没有错误,但是在代码单元中,pm.plot_posterior(samples)出现了错误:未安装arviz.

In Google's colaboratory, installed arviz then did import arviz without error, but in a code cell, pm.plot_posterior(samples) gets error: arviz not installed.

试图绘制贝叶斯代码

pm.plot_posterior(samples)

我希望有个情节

推荐答案

在导入PyMC3之前安装Arviz ,否则显然找不到它.就您而言,只需重新启动运行时(运行时> 重新启动运行时... )即可使其正常运行.

Install Arviz prior to importing PyMC3, otherwise it apparently cannot find it. In your case, simply restarting the runtime (Runtime > Restart runtime...) should get it working.

这篇关于colaboratory在安装和导入后不会确认arviz的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆