python - tfx.orchestration.experimental 没有属性“get_default_kubeflow_metadata_config”
问题描述
我正在尝试使用 kubeflow 编排 TFX 管道,但在创建管道期间出现以下错误。
AttributeError: module 'tfx.orchestration.experimental' has no attribute 'get_default_kubeflow_metadata_config'
下面是我的管道运行器文件的代码:
from tfx import v1 as tfx
import my_config
import my_pipeline1
from tfx.orchestration import experimental
def run():
"""Define a kubeflow pipeline."""
metadata_config = experimental.get_default_kubeflow_metadata_config(
)
runner_config = experimental.KubeflowDagRunnerConfig(
kubeflow_metadata_config=metadata_config,
tfx_image=my_config.PIPELINE_IMAGE)
experimental.KubeflowDagRunner(
config=runner_config
).run(
my_pipeline1.create_pipeline(
pipeline_name=my_config.PIPELINE_NAME,
pipeline_root=PIPELINE_ROOT,
data_root=DATA_PATH,
preprocessing_fn = my_config.PREPROCESSING_FN,
run_fn = my_config.RUN_FN,
))
if __name__ == '__main__':
logging.set_verbosity(logging.INFO)
run()
请让我知道是否有解决此问题的方法。我目前正在使用 TFX 1.0.0。提前致谢。
解决方案
推荐阅读
- c# - 不可为空的引用类型的默认值 VS 不可为空的值类型的默认值
- javascript - 错误:在条件表达式中不必要地使用布尔文字
- oracle - 无法使用创建数据库命令创建数据库
- ffmpeg - “破折号”是什么意思——作为 ffmpeg 输出文件名
- java - Jersey REST 服务在迁移到 Tomcat 9 后引发异常:严重:缺少方法 public javax.ws.rs.core.Response 的依赖项
- youtube-api - 如何在给定的特定频道/频道 ID 列表中使用关键字搜索视频 - youtube data API v3?
- php - 表单中的下拉数据未插入数据库中,仅部门值未插入
- css - 如何根据全局选择器添加范围样式
- html - 我试图将 aspx web 表单嵌入到 html 页面中
- postgresql - 将以下 SQL 转换为 PostgreSQL