编辑通过AMLS创建的容器图像 [英] Editing a container image created through AMLS

查看:74
本文介绍了编辑通过AMLS创建的容器图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个包含H2O模型的图像和相关的部署。

I have created an image containing an H2O model and an associated deployment.

 

不幸的是,目前与Python h2o库和AMLS托管Python上下文的方式不兼容。在h2o代码中的两个地方,它尝试刷新stdout,其中
导致异常,因为AMLS使用的StreamWrapper类没有flush方法。

Unfortunately, there is currently an incompatibility with the Python h2o library and the way AMLS hosts the Python context. In two places in the h2o code it tries to flush stdout which causes an exception because the StreamWrapper class being used by AMLS does not have a flush method.

我必须进行这些更改才能使其正常工作,

I had to make these changes to get it working,

 

1)

/ home / mmlspark / lib / conda / lib / python3.6 / site-packages / h2o / backend / connection.py

/home/mmlspark/lib/conda/lib/python3.6/site-packages/h2o/backend/connection.py

更改了第566行,

From:self._print("。",end ="",flush = True)

From: self._print(".", end="", flush=True)

To:self._print(&q uot;。",end ="",flush = False)

To: self._print(".", end="", flush=False)

 

2)

/ home / mmlspark / lib / conda / lib / python3.6 / site-packages / h2o / utils / progressbar.py

/home/mmlspark/lib/conda/lib/python3.6/site-packages/h2o/utils/progressbar.py

重新排除第363行

sys.stdout.flush()

sys.stdout.flush()

 

目前,我编辑ACI图像以更改这些文件的最佳方法是什么?

For now, what is the best way for me to edit the ACI image to make these file changes?

推荐答案

抱歉听到你正在遭受这个问题。请你查看下面的博客,看看它是否有帮助?https://www.h2o.ai/blog/developing-and-operationalizing-h2o-ai-models-with- azure /

Sorry to hear you are suffering from this issue. Could you please check the following blog to see if it helps? https://www.h2o.ai/blog/developing-and-operationalizing-h2o-ai-models-with-azure/

问候,

宇通


这篇关于编辑通过AMLS创建的容器图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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