【问题标题】:Is there a way to change hooks dynamically in Kedro?有没有办法在 Kedro 中动态更改挂钩?
【发布时间】:2020-10-22 10:00:05
【问题描述】:

我知道我可以通过 kedro_cli.py 添加任何 CLI 选项。 但我不知道如何更改动态加载的钩子。

我正在使用kedro-mlflow,这些功能是通过钩子提供的。 有时我不想暂时记录 MLFlow。

如果可能,请给我看一个 ProjectContext 代码示例。

【问题讨论】:

    标签: kedro


    【解决方案1】:

    如果钩子有 https://kedro.readthedocs.io/en/stable/07_extend_kedro/05_plugins.html#hooks 中描述的入口点,您可以通过在 .kedro.yml https://kedro.readthedocs.io/en/stable/07_extend_kedro/04_hooks.html#disable-auto-registered-plugins-hooks 中指定来禁用它,但您可能必须要求 kedro-mlflow 插件的维护者添加 auto -先注册。

    【讨论】:

      猜你喜欢
      • 2020-03-09
      • 2014-06-22
      • 2020-07-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-01
      • 1970-01-01
      相关资源
      最近更新 更多