【发布时间】:2026-02-02 07:40:01
【问题描述】:
-
我们正在尝试在 python 中导入“
scikit-multilearn”库 脚本,我们在 Azure 机器学习中使用这个 python 脚本 算法来实现我们的目标。我们已经在 jupyter notebook 中编写了脚本并运行了我们的 算法中的脚本。
在运行 python 脚本时,我们遇到了以下错误,
ImportError Traceback(最近调用 最后)在() ----> 1 从 skmultilearn.problem_transform 导入 LabelPowerset 2
ImportError: 没有名为“skmultilearn”的模块
在获得解决方案方面需要帮助。
已编辑:
我们已经按照上面提到的步骤成功通过了。有关详细信息,请参阅下图。
但是添加DataSet List后,拖到第三个节点 在机器学习实验中执行 Python 脚本,我们运行它 并引发以下错误:
Error 0085: The following error
occurred during script evaluation, please view the output log for
more information:
---------- Start of error message from Python interpreter ---------- Caught exception while executing function: Traceback (most recent
call last): File "C:\server\invokepy.py", line 189, in batch
mod = import_module(moduleName) File "C:\pyhome\lib\importlib\__init__.py", line 37, in import_module
__import__(name) File "C:\temp\f99d826a21174a1a87b0dfd39e10fcb5.py", line 16, in <module>
from skmultilearn.adapt import MLkNN ImportError: No module named skmultilearn.adapt Process returned with non-zero exit code 1
---------- End of error message from Python interpreter ---------- Start time: UTC 12/21/2017 07:26:59 End time: UTC 12/21/2017 07:27:13
另外,我们只写了“from skmultilearn.adapt import python脚本中的MLkNN”语句来检查库的导入。
【问题讨论】:
-
您好,欢迎来到这里!如果您添加了生成问题的代码部分以获得可重现的示例,您将获得更多帮助!
-
嗨,我使用 azure Machine Leaning Experiment 并使用 Execute Python Script 函数导入 scikit-Multilearn 包,以便在 azure ML Experiment 中使用多标签类算法,但它显示错误。您可以在上面的图片中看到详情
标签: python azure scikit-multilearn