2025-06-12 14:00:26 +09:00
|
|
|
from datahub.sdk import DataHubClient
|
|
|
|
from datahub.sdk.mlmodelgroup import MLModelGroup
|
2023-05-17 10:21:39 +09:00
|
|
|
|
2025-06-12 14:00:26 +09:00
|
|
|
client = DataHubClient.from_env()
|
2023-05-17 10:21:39 +09:00
|
|
|
|
2025-06-12 14:00:26 +09:00
|
|
|
mlmodel_group = MLModelGroup(
|
|
|
|
id="my-recommendations-model-group",
|
|
|
|
name="My Recommendations Model Group",
|
|
|
|
platform="mlflow",
|
|
|
|
description="Grouping of ml model related to home page recommendations",
|
|
|
|
custom_properties={
|
|
|
|
"framework": "pytorch",
|
|
|
|
},
|
2023-05-17 10:21:39 +09:00
|
|
|
)
|
|
|
|
|
2025-06-12 14:00:26 +09:00
|
|
|
client.entities.update(mlmodel_group)
|