AIF360 重称技术示例错误

AIF360 reweighing technique example errors

我正在尝试 运行 来自 github link (https://github.com/Trusted-AI/AIF360/blob/master/examples/demo_reweighing_preproc.ipynb) 的 aif360 重称技术。即使我按照说明下载了所有正确的文件。由于错误,我无法成功 运行 这一切:


ModuleNotFoundError Traceback(最后一次调用) 在 30 将 matplotlib.pyplot 导入为 plt 31 ---> 32 来自 common_utils 导入 compute_metrics

ModuleNotFoundError: 没有名为 'common_utils'

的模块

除非我找到这个模块并且 运行 成功,否则我将无法计算指标。有人遇到过这个吗?

from common_utils import compute_metrics 是那里的本地导入。 common_utils.py可用here。您只需将其下载并复制到 demo_reweighing_preproc.ipynb 笔记本文件所在的同一目录。