2025-06-12 14:00:26 +09:00
|
|
|
from datahub.metadata.urns import MlModelGroupUrn
|
|
|
|
from datahub.sdk import DataHubClient
|
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-08-21 14:51:11 -07:00
|
|
|
# Or get this from the UI (share -> copy urn) and use MlModelGroupUrn.from_string(...)
|
|
|
|
mlmodel_group_urn = MlModelGroupUrn(
|
|
|
|
platform="mlflow", name="my-recommendations-model-group"
|
2025-06-12 14:00:26 +09:00
|
|
|
)
|
2023-05-17 10:21:39 +09:00
|
|
|
|
2025-08-21 14:51:11 -07:00
|
|
|
mlmodel_group_entity = client.entities.get(mlmodel_group_urn)
|
|
|
|
print("Model Group Name: ", mlmodel_group_entity.name)
|
|
|
|
print("Model Group Description: ", mlmodel_group_entity.description)
|
|
|
|
print("Model Group Custom Properties: ", mlmodel_group_entity.custom_properties)
|