0
  1. " " ライブラリを Python スクリプトにインポートしようとしていscikit-multilearnます。この Python スクリプトを Azure 機械学習アルゴリズムで使用して、目標を達成しています。

    スクリプトを jupyter ノートブックに記述し、スクリプトをアルゴリズムで実行しています。

    Python スクリプトを実行しているときに、以下のエラーが表示されます。

    () 内の ImportError トレースバック (最新の呼び出しが最後) ----> skmultilearn.problem_transform から 1 インポート LabelPowerset 2

    ImportError: 'skmultilearn' という名前のモジュールがありません

    同じ問題を解決するには助けが必要です。


編集:

上記の手順に従い、成功しました。詳細は下の画像を参照してください。 ここに画像の説明を入力

しかし、DataSet リストを追加した後、機械学習実験で Python スクリプトの実行の 3 番目のノードにドラッグして実行すると、次のエラーがスローされます。

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

また、Python スクリプトに「from skmultilearn.adapt import MLkNN」ステートメントを記述して、ライブラリのインポートを確認しました。

ここに画像の説明を入力

4

1 に答える 1