gpt4 book ai didi

azure - 无法导入自动解释器

转载 作者:行者123 更新时间:2023-12-03 05:39:26 24 4
gpt4 key购买 nike

尝试在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com