【问题标题】:Is it possible to import python scripts in Azure?是否可以在 Azure 中导入 python 脚本?
【发布时间】:2016-03-08 15:03:17
【问题描述】:

我有一个用不同文件编写的 python 脚本(一个用于导入,一个用于计算,等等)。这些都在同一个文件夹中,当我需要另一个函数中的函数时,我会执行类似的操作

import file_import
file_import.do_something_usefull()

当然,在file_import 中有一个函数do_something_usefull(),嗯,它做了一些有用的事情。如何在 Azure 中完成同样的任务?

【问题讨论】:

  • 你必须说明你想在哪个服务中使用它——AWS、自动化等。
  • 我真的不明白你的意思。它是机器学习环境。够了吗?
  • 是的,我猜。也许您应该多解释一下您在 Azure 机器学习中尝试了什么,遇到了什么问题?
  • 我有类似this 的信息。我没有看到上传 python 脚本或模块以将其包含在其中的选项。

标签: python azure cortana-intelligence azure-machine-learning-studio


【解决方案1】:

我自己发现了。它记录在 Microsoft 的网站 here

步骤很短,如下:

  1. 在 .zip 中包含您想要的所有 python
  2. 将该 zip 作为数据集上传
  3. 将数据集作为“执行 python”块中的第三个选项参数拖动(示例如下)

  1. 通过导入import Hello(文件名,不是zip)并运行Hello.do_something_usefull()来执行上述功能

【讨论】:

    【解决方案2】:

    作为参考,有一个类似的回答线程可以参考,请参阅Access Azure blog storage from within an Azure ML experiment

    【讨论】:

      猜你喜欢
      • 2022-12-01
      • 1970-01-01
      • 2012-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-14
      • 1970-01-01
      相关资源
      最近更新 更多