Commit 125de64 1 parent bce5805 commit 125de64 Copy full SHA for 125de64
File tree 2 files changed +10
-4
lines changed
metadata-ingestion/src/datahub/ingestion/source
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -95,5 +95,11 @@ class BIAssetSubTypes(StrEnum):
95
95
96
96
97
97
class MLAssetSubTypes (StrEnum ):
98
- MLFLOW_TRAINING_RUN = "ML Training Run"
99
- MLFLOW_EXPERIMENT = "ML Experiment"
98
+ TRAINING_RUN = "ML Training Run"
99
+ EXPERIMENT = "ML Experiment"
100
+ MODEL = "ML Model"
101
+ TRAINING_JOB = "Training Job"
102
+ MODEL_GROUP = "ML Model Group"
103
+ ENDPOINT = "Endpoint"
104
+ DATASET = "Dataset"
105
+ PROJECT = "Project"
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ def _get_experiment_container_workunit(
228
228
platform = str (DataPlatformUrn (platform_name = self .platform )),
229
229
id = experiment .name ,
230
230
),
231
- subtype = MLAssetSubTypes .MLFLOW_EXPERIMENT ,
231
+ subtype = MLAssetSubTypes .EXPERIMENT ,
232
232
display_name = experiment .name ,
233
233
description = experiment .tags .get ("mlflow.note.content" ),
234
234
extra_properties = self ._get_experiment_custom_properties (experiment ),
@@ -358,7 +358,7 @@ def _get_run_workunits(
358
358
359
359
yield MetadataChangeProposalWrapper (
360
360
entityUrn = str (data_process_instance .urn ),
361
- aspect = SubTypesClass (typeNames = [MLAssetSubTypes .MLFLOW_TRAINING_RUN ]),
361
+ aspect = SubTypesClass (typeNames = [MLAssetSubTypes .TRAINING_RUN ]),
362
362
).as_workunit ()
363
363
364
364
def _get_mlflow_registered_models (self ) -> Iterable [RegisteredModel ]:
You can’t perform that action at this time.
0 commit comments