0

I got this error, when compiling my pipeline:

type name google.VertexModel is different from expected: Model

when running the following notebook by google: automl_tabular_classification_beans

I suppose that kubeflow v2 is not able to handle (yet) google.vertexmodel as type for component input. However, I've been browsing a bit and did not find any good clue, or refs (kfp documentation for v2 is not up to date..) to solve this issue. Hopefully someone here can give me a good pointer? I look forward to all of your ideas.

Cheers

4

2 回答 2

0

这是 0.1.9 版的重大更改。这里有一些建议:

  1. 将您的版本固定到 0.1.7 并继续使用 Model 类型。
  2. 使用 0.1.9 并将输出从 Output[Model] 切换到 Output[Artifact]。
  3. 尝试 0.2.0 版本,这里的文档。

希望这些建议能奏效!

于 2021-11-07T10:09:52.700 回答
0

Google.Vertex 在这里定义:

https://github.com/kubeflow/pipelines/blob/286a49547cce763c502592c822296aa60f50b3e8/components/google-cloud/google_cloud_pipeline_components/types/artifact_types.py#L20

下面是一个关于如何定义它的例子:

https://github.com/kubeflow/pipelines/blob/286a49547cce763c502592c822296aa60f50b3e8/components/google-cloud/tests/types/artifact_types_test.py#L22

例如,

from google_cloud_pipeline_components.types import artifact_types
model = artifact_types.VertexModel(uri='YOUR_MODEL_URI_STRING')

您能否尝试使用上述语法指定您的模型,并让我们知道这是否适用于您的代码?

于 2021-11-04T08:12:16.800 回答