File tree 2 files changed +3
-3
lines changed
src/datahub/ingestion/source
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -584,6 +584,7 @@ def _get_ml_model_properties_workunit(
584
584
if model_version .user_id
585
585
else None
586
586
)
587
+ model_version_tags = [f"{ k } :{ v } " for k , v in model_version .tags .items ()]
587
588
588
589
ml_model_properties = MLModelPropertiesClass (
589
590
customProperties = model_version .tags ,
@@ -599,8 +600,7 @@ def _get_ml_model_properties_workunit(
599
600
),
600
601
hyperParams = hyperparams ,
601
602
trainingMetrics = training_metrics ,
602
- # mlflow tags are dicts, but datahub tags are lists. currently use only keys from mlflow tags
603
- tags = list (model_version .tags .keys ()),
603
+ tags = model_version_tags ,
604
604
groups = [ml_model_group_urn ],
605
605
trainingJobs = training_jobs ,
606
606
)
Original file line number Diff line number Diff line change 362
362
}
363
363
],
364
364
"tags" : [
365
- " model_version_id"
365
+ " model_version_id:1 "
366
366
],
367
367
"groups" : [
368
368
" urn:li:mlModelGroup:(urn:li:dataPlatform:mlflow,test-model,PROD)"
You can’t perform that action at this time.
0 commit comments