1 個回答
- 最新
- 最多得票
- 最多評論
1
Yes, it is possible. You can add custom metadata when you use the register method of the Model object in the SageMaker SDK. The Model step from SageMaker Pipelines can then be used together with this register method.
Below is a snippet of code copied from the example provided on this page, where I have added the custom_metadata_properties
parameter with your example input.
register_model_step_args = pipeline_model.register(
content_types=["application/json"],
response_types=["application/json"],
inference_instances=["ml.t2.medium", "ml.m5.xlarge"],
transform_instances=["ml.m5.xlarge"],
model_package_group_name="sipgroup",
customer_metadata_properties={"key1": "value1", "key2": "value2"}
)
step_model_registration = ModelStep(
name="AbaloneRegisterModel",
step_args=register_model_step_args,
)
已回答 1 年前
相關內容
- 已提問 10 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前