azure - 无法导入自动解释器

标签 azure automl azure-machine-learning-service

尝试在 azureml 中导入自动解释器时收到以下错误:

from azureml.train.automl.automlexplainer import explain_model  

ModuleNotFoundError Traceback (most recent call last) in ----> 1 from azureml.train.automl.automlexplainer import retrieve_model_explanation 2 from azureml.train.automl.automlexplainer import explain_model 3 4 shap_values, expected_values, overall_summary, overall_imp, per_class_summary, per_class_imp = explain_model(fitted_model, x_train, x_test) 5 #Overall feature importance ModuleNotFoundError: No module named 'azureml.train.automl.automlexplainer'

有什么建议吗?

最佳答案

包路径已更改

应该是:-

从azureml.train.automl.runtime.automlexplainer导入explain_model

关于azure - 无法导入自动解释器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59892993/

相关文章:

azure - 使用 pfx 文件时,Azure Function App 返回 'The credentials supplied to the package were not recognized'

c# - 如何在transactionscope中调用azure服务总线

azure - 检索 Azure ML v2 的当前作业

google-cloud-platform - 如何使用 Google NLP 在单个注释中提取多个标签文本项

google-cloud-platform - 用于调用 AutoML Vision 模型预测的移动应用程序

azure - 在 AzureML 中的 Azure DataLake 中写入文件

machine-learning - 解释统计模型指标

在 Azure .Net SDK 中找不到 AzureCredentials

azure - Azure 机器学习和批处理端点的问题

python - unpickle 自动训练模型时没有名为 'automl' 的模块