mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-12 17:34:18 +00:00
feat(models): remove versions from metrics and hyperparams (#2938)
This commit is contained in:
parent
b064e51a84
commit
43e61d9628
@ -345,7 +345,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"doc" : "Urn of the applied glossary term"
|
"doc" : "Urn of the applied glossary term",
|
||||||
|
"Searchable" : {
|
||||||
|
"fieldName" : "glossaryTerms",
|
||||||
|
"fieldType" : "TEXT_PARTIAL"
|
||||||
|
}
|
||||||
} ]
|
} ]
|
||||||
}, "com.linkedin.common.GlossaryTermUrn", {
|
}, "com.linkedin.common.GlossaryTermUrn", {
|
||||||
"type" : "record",
|
"type" : "record",
|
||||||
|
|||||||
@ -595,7 +595,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"doc" : "Urn of the applied glossary term"
|
"doc" : "Urn of the applied glossary term",
|
||||||
|
"Searchable" : {
|
||||||
|
"fieldName" : "glossaryTerms",
|
||||||
|
"fieldType" : "TEXT_PARTIAL"
|
||||||
|
}
|
||||||
} ]
|
} ]
|
||||||
}, "com.linkedin.common.GlossaryTermUrn", {
|
}, "com.linkedin.common.GlossaryTermUrn", {
|
||||||
"type" : "record",
|
"type" : "record",
|
||||||
@ -2479,11 +2483,6 @@
|
|||||||
"type" : "com.linkedin.common.Time",
|
"type" : "com.linkedin.common.Time",
|
||||||
"doc" : "Date when the MLHyperParam was developed",
|
"doc" : "Date when the MLHyperParam was developed",
|
||||||
"optional" : true
|
"optional" : true
|
||||||
}, {
|
|
||||||
"name" : "version",
|
|
||||||
"type" : "com.linkedin.common.VersionTag",
|
|
||||||
"doc" : "Version of the MLHyperParam",
|
|
||||||
"optional" : true
|
|
||||||
} ],
|
} ],
|
||||||
"Aspect" : {
|
"Aspect" : {
|
||||||
"name" : "mlHyperParam"
|
"name" : "mlHyperParam"
|
||||||
@ -2519,11 +2518,6 @@
|
|||||||
"type" : "com.linkedin.common.Time",
|
"type" : "com.linkedin.common.Time",
|
||||||
"doc" : "Date when the mlMetric was developed",
|
"doc" : "Date when the mlMetric was developed",
|
||||||
"optional" : true
|
"optional" : true
|
||||||
}, {
|
|
||||||
"name" : "version",
|
|
||||||
"type" : "com.linkedin.common.VersionTag",
|
|
||||||
"doc" : "Version of the mlMetric",
|
|
||||||
"optional" : true
|
|
||||||
} ],
|
} ],
|
||||||
"Aspect" : {
|
"Aspect" : {
|
||||||
"name" : "mlMetric"
|
"name" : "mlMetric"
|
||||||
|
|||||||
@ -815,7 +815,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"doc" : "Urn of the applied glossary term"
|
"doc" : "Urn of the applied glossary term",
|
||||||
|
"Searchable" : {
|
||||||
|
"fieldName" : "glossaryTerms",
|
||||||
|
"fieldType" : "TEXT_PARTIAL"
|
||||||
|
}
|
||||||
} ]
|
} ]
|
||||||
}, "com.linkedin.common.GlossaryTermUrn", {
|
}, "com.linkedin.common.GlossaryTermUrn", {
|
||||||
"type" : "record",
|
"type" : "record",
|
||||||
@ -2879,11 +2883,6 @@
|
|||||||
"type" : "com.linkedin.common.Time",
|
"type" : "com.linkedin.common.Time",
|
||||||
"doc" : "Date when the MLHyperParam was developed",
|
"doc" : "Date when the MLHyperParam was developed",
|
||||||
"optional" : true
|
"optional" : true
|
||||||
}, {
|
|
||||||
"name" : "version",
|
|
||||||
"type" : "com.linkedin.common.VersionTag",
|
|
||||||
"doc" : "Version of the MLHyperParam",
|
|
||||||
"optional" : true
|
|
||||||
} ],
|
} ],
|
||||||
"Aspect" : {
|
"Aspect" : {
|
||||||
"name" : "mlHyperParam"
|
"name" : "mlHyperParam"
|
||||||
@ -2919,11 +2918,6 @@
|
|||||||
"type" : "com.linkedin.common.Time",
|
"type" : "com.linkedin.common.Time",
|
||||||
"doc" : "Date when the mlMetric was developed",
|
"doc" : "Date when the mlMetric was developed",
|
||||||
"optional" : true
|
"optional" : true
|
||||||
}, {
|
|
||||||
"name" : "version",
|
|
||||||
"type" : "com.linkedin.common.VersionTag",
|
|
||||||
"doc" : "Version of the mlMetric",
|
|
||||||
"optional" : true
|
|
||||||
} ],
|
} ],
|
||||||
"Aspect" : {
|
"Aspect" : {
|
||||||
"name" : "mlMetric"
|
"name" : "mlMetric"
|
||||||
|
|||||||
@ -615,11 +615,6 @@
|
|||||||
"type" : "com.linkedin.common.Time",
|
"type" : "com.linkedin.common.Time",
|
||||||
"doc" : "Date when the MLHyperParam was developed",
|
"doc" : "Date when the MLHyperParam was developed",
|
||||||
"optional" : true
|
"optional" : true
|
||||||
}, {
|
|
||||||
"name" : "version",
|
|
||||||
"type" : "com.linkedin.common.VersionTag",
|
|
||||||
"doc" : "Version of the MLHyperParam",
|
|
||||||
"optional" : true
|
|
||||||
} ],
|
} ],
|
||||||
"Aspect" : {
|
"Aspect" : {
|
||||||
"name" : "mlHyperParam"
|
"name" : "mlHyperParam"
|
||||||
@ -655,11 +650,6 @@
|
|||||||
"type" : "com.linkedin.common.Time",
|
"type" : "com.linkedin.common.Time",
|
||||||
"doc" : "Date when the mlMetric was developed",
|
"doc" : "Date when the mlMetric was developed",
|
||||||
"optional" : true
|
"optional" : true
|
||||||
}, {
|
|
||||||
"name" : "version",
|
|
||||||
"type" : "com.linkedin.common.VersionTag",
|
|
||||||
"doc" : "Version of the mlMetric",
|
|
||||||
"optional" : true
|
|
||||||
} ],
|
} ],
|
||||||
"Aspect" : {
|
"Aspect" : {
|
||||||
"name" : "mlMetric"
|
"name" : "mlMetric"
|
||||||
|
|||||||
@ -3434,15 +3434,6 @@
|
|||||||
"name": "createdAt",
|
"name": "createdAt",
|
||||||
"default": null,
|
"default": null,
|
||||||
"doc": "Date when the MLHyperParam was developed"
|
"doc": "Date when the MLHyperParam was developed"
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": [
|
|
||||||
"null",
|
|
||||||
"com.linkedin.pegasus2avro.common.VersionTag"
|
|
||||||
],
|
|
||||||
"name": "version",
|
|
||||||
"default": null,
|
|
||||||
"doc": "Version of the MLHyperParam"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"doc": "Properties associated with an ML Hyper Param"
|
"doc": "Properties associated with an ML Hyper Param"
|
||||||
@ -3497,15 +3488,6 @@
|
|||||||
"name": "createdAt",
|
"name": "createdAt",
|
||||||
"default": null,
|
"default": null,
|
||||||
"doc": "Date when the mlMetric was developed"
|
"doc": "Date when the mlMetric was developed"
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": [
|
|
||||||
"null",
|
|
||||||
"com.linkedin.pegasus2avro.common.VersionTag"
|
|
||||||
],
|
|
||||||
"name": "version",
|
|
||||||
"default": null,
|
|
||||||
"doc": "Version of the mlMetric"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"doc": "Properties associated with an ML Metric"
|
"doc": "Properties associated with an ML Metric"
|
||||||
|
|||||||
@ -5671,7 +5671,6 @@ class MLHyperParamClass(DictWrapper):
|
|||||||
description: Union[None, str]=None,
|
description: Union[None, str]=None,
|
||||||
value: Union[None, str]=None,
|
value: Union[None, str]=None,
|
||||||
createdAt: Union[None, int]=None,
|
createdAt: Union[None, int]=None,
|
||||||
version: Union[None, "VersionTagClass"]=None,
|
|
||||||
):
|
):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
@ -5679,7 +5678,6 @@ class MLHyperParamClass(DictWrapper):
|
|||||||
self.description = description
|
self.description = description
|
||||||
self.value = value
|
self.value = value
|
||||||
self.createdAt = createdAt
|
self.createdAt = createdAt
|
||||||
self.version = version
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def construct_with_defaults(cls) -> "MLHyperParamClass":
|
def construct_with_defaults(cls) -> "MLHyperParamClass":
|
||||||
@ -5693,7 +5691,6 @@ class MLHyperParamClass(DictWrapper):
|
|||||||
self.description = self.RECORD_SCHEMA.field_map["description"].default
|
self.description = self.RECORD_SCHEMA.field_map["description"].default
|
||||||
self.value = self.RECORD_SCHEMA.field_map["value"].default
|
self.value = self.RECORD_SCHEMA.field_map["value"].default
|
||||||
self.createdAt = self.RECORD_SCHEMA.field_map["createdAt"].default
|
self.createdAt = self.RECORD_SCHEMA.field_map["createdAt"].default
|
||||||
self.version = self.RECORD_SCHEMA.field_map["version"].default
|
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -5740,17 +5737,6 @@ class MLHyperParamClass(DictWrapper):
|
|||||||
self._inner_dict['createdAt'] = value
|
self._inner_dict['createdAt'] = value
|
||||||
|
|
||||||
|
|
||||||
@property
|
|
||||||
def version(self) -> Union[None, "VersionTagClass"]:
|
|
||||||
"""Getter: Version of the MLHyperParam"""
|
|
||||||
return self._inner_dict.get('version') # type: ignore
|
|
||||||
|
|
||||||
@version.setter
|
|
||||||
def version(self, value: Union[None, "VersionTagClass"]) -> None:
|
|
||||||
"""Setter: Version of the MLHyperParam"""
|
|
||||||
self._inner_dict['version'] = value
|
|
||||||
|
|
||||||
|
|
||||||
class MLMetricClass(DictWrapper):
|
class MLMetricClass(DictWrapper):
|
||||||
"""Properties associated with an ML Metric"""
|
"""Properties associated with an ML Metric"""
|
||||||
|
|
||||||
@ -5760,7 +5746,6 @@ class MLMetricClass(DictWrapper):
|
|||||||
description: Union[None, str]=None,
|
description: Union[None, str]=None,
|
||||||
value: Union[None, str]=None,
|
value: Union[None, str]=None,
|
||||||
createdAt: Union[None, int]=None,
|
createdAt: Union[None, int]=None,
|
||||||
version: Union[None, "VersionTagClass"]=None,
|
|
||||||
):
|
):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
@ -5768,7 +5753,6 @@ class MLMetricClass(DictWrapper):
|
|||||||
self.description = description
|
self.description = description
|
||||||
self.value = value
|
self.value = value
|
||||||
self.createdAt = createdAt
|
self.createdAt = createdAt
|
||||||
self.version = version
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def construct_with_defaults(cls) -> "MLMetricClass":
|
def construct_with_defaults(cls) -> "MLMetricClass":
|
||||||
@ -5782,7 +5766,6 @@ class MLMetricClass(DictWrapper):
|
|||||||
self.description = self.RECORD_SCHEMA.field_map["description"].default
|
self.description = self.RECORD_SCHEMA.field_map["description"].default
|
||||||
self.value = self.RECORD_SCHEMA.field_map["value"].default
|
self.value = self.RECORD_SCHEMA.field_map["value"].default
|
||||||
self.createdAt = self.RECORD_SCHEMA.field_map["createdAt"].default
|
self.createdAt = self.RECORD_SCHEMA.field_map["createdAt"].default
|
||||||
self.version = self.RECORD_SCHEMA.field_map["version"].default
|
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -5829,17 +5812,6 @@ class MLMetricClass(DictWrapper):
|
|||||||
self._inner_dict['createdAt'] = value
|
self._inner_dict['createdAt'] = value
|
||||||
|
|
||||||
|
|
||||||
@property
|
|
||||||
def version(self) -> Union[None, "VersionTagClass"]:
|
|
||||||
"""Getter: Version of the mlMetric"""
|
|
||||||
return self._inner_dict.get('version') # type: ignore
|
|
||||||
|
|
||||||
@version.setter
|
|
||||||
def version(self, value: Union[None, "VersionTagClass"]) -> None:
|
|
||||||
"""Setter: Version of the mlMetric"""
|
|
||||||
self._inner_dict['version'] = value
|
|
||||||
|
|
||||||
|
|
||||||
class MLModelDeploymentPropertiesClass(DictWrapper):
|
class MLModelDeploymentPropertiesClass(DictWrapper):
|
||||||
"""Properties associated with an ML Model Deployment"""
|
"""Properties associated with an ML Model Deployment"""
|
||||||
|
|
||||||
|
|||||||
@ -3384,15 +3384,6 @@
|
|||||||
],
|
],
|
||||||
"doc": "Date when the MLHyperParam was developed",
|
"doc": "Date when the MLHyperParam was developed",
|
||||||
"default": null
|
"default": null
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "version",
|
|
||||||
"type": [
|
|
||||||
"null",
|
|
||||||
"com.linkedin.pegasus2avro.common.VersionTag"
|
|
||||||
],
|
|
||||||
"doc": "Version of the MLHyperParam",
|
|
||||||
"default": null
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Aspect": {
|
"Aspect": {
|
||||||
@ -3446,15 +3437,6 @@
|
|||||||
],
|
],
|
||||||
"doc": "Date when the mlMetric was developed",
|
"doc": "Date when the mlMetric was developed",
|
||||||
"default": null
|
"default": null
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "version",
|
|
||||||
"type": [
|
|
||||||
"null",
|
|
||||||
"com.linkedin.pegasus2avro.common.VersionTag"
|
|
||||||
],
|
|
||||||
"doc": "Version of the mlMetric",
|
|
||||||
"default": null
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Aspect": {
|
"Aspect": {
|
||||||
|
|||||||
@ -3383,15 +3383,6 @@
|
|||||||
],
|
],
|
||||||
"doc": "Date when the MLHyperParam was developed",
|
"doc": "Date when the MLHyperParam was developed",
|
||||||
"default": null
|
"default": null
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "version",
|
|
||||||
"type": [
|
|
||||||
"null",
|
|
||||||
"com.linkedin.pegasus2avro.common.VersionTag"
|
|
||||||
],
|
|
||||||
"doc": "Version of the MLHyperParam",
|
|
||||||
"default": null
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Aspect": {
|
"Aspect": {
|
||||||
@ -3445,15 +3436,6 @@
|
|||||||
],
|
],
|
||||||
"doc": "Date when the mlMetric was developed",
|
"doc": "Date when the mlMetric was developed",
|
||||||
"default": null
|
"default": null
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "version",
|
|
||||||
"type": [
|
|
||||||
"null",
|
|
||||||
"com.linkedin.pegasus2avro.common.VersionTag"
|
|
||||||
],
|
|
||||||
"doc": "Version of the mlMetric",
|
|
||||||
"default": null
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Aspect": {
|
"Aspect": {
|
||||||
|
|||||||
@ -1626,15 +1626,13 @@
|
|||||||
"name": "parameter-1",
|
"name": "parameter-1",
|
||||||
"description": null,
|
"description": null,
|
||||||
"value": "some-value",
|
"value": "some-value",
|
||||||
"createdAt": null,
|
"createdAt": null
|
||||||
"version": null
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "parameter-2",
|
"name": "parameter-2",
|
||||||
"description": null,
|
"description": null,
|
||||||
"value": "another-value",
|
"value": "another-value",
|
||||||
"createdAt": null,
|
"createdAt": null
|
||||||
"version": null
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"trainingMetrics": [
|
"trainingMetrics": [
|
||||||
@ -1642,15 +1640,13 @@
|
|||||||
"name": "another-metric",
|
"name": "another-metric",
|
||||||
"description": null,
|
"description": null,
|
||||||
"value": "1.0",
|
"value": "1.0",
|
||||||
"createdAt": null,
|
"createdAt": null
|
||||||
"version": null
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "some-metric",
|
"name": "some-metric",
|
||||||
"description": null,
|
"description": null,
|
||||||
"value": "1.0",
|
"value": "1.0",
|
||||||
"createdAt": null,
|
"createdAt": null
|
||||||
"version": null
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"onlineMetrics": null,
|
"onlineMetrics": null,
|
||||||
@ -1708,15 +1704,13 @@
|
|||||||
"name": "parameter-1",
|
"name": "parameter-1",
|
||||||
"description": null,
|
"description": null,
|
||||||
"value": "some-value",
|
"value": "some-value",
|
||||||
"createdAt": null,
|
"createdAt": null
|
||||||
"version": null
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "parameter-2",
|
"name": "parameter-2",
|
||||||
"description": null,
|
"description": null,
|
||||||
"value": "another-value",
|
"value": "another-value",
|
||||||
"createdAt": null,
|
"createdAt": null
|
||||||
"version": null
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"trainingMetrics": [
|
"trainingMetrics": [
|
||||||
@ -1724,15 +1718,13 @@
|
|||||||
"name": "another-metric",
|
"name": "another-metric",
|
||||||
"description": null,
|
"description": null,
|
||||||
"value": "1.0",
|
"value": "1.0",
|
||||||
"createdAt": null,
|
"createdAt": null
|
||||||
"version": null
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "some-metric",
|
"name": "some-metric",
|
||||||
"description": null,
|
"description": null,
|
||||||
"value": "1.0",
|
"value": "1.0",
|
||||||
"createdAt": null,
|
"createdAt": null
|
||||||
"version": null
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"onlineMetrics": null,
|
"onlineMetrics": null,
|
||||||
|
|||||||
@ -31,9 +31,4 @@ record MLHyperParam {
|
|||||||
* Date when the MLHyperParam was developed
|
* Date when the MLHyperParam was developed
|
||||||
*/
|
*/
|
||||||
createdAt: optional Time
|
createdAt: optional Time
|
||||||
|
|
||||||
/**
|
|
||||||
* Version of the MLHyperParam
|
|
||||||
*/
|
|
||||||
version: optional VersionTag
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,9 +31,4 @@ record MLMetric {
|
|||||||
* Date when the mlMetric was developed
|
* Date when the mlMetric was developed
|
||||||
*/
|
*/
|
||||||
createdAt: optional Time
|
createdAt: optional Time
|
||||||
|
|
||||||
/**
|
|
||||||
* Version of the mlMetric
|
|
||||||
*/
|
|
||||||
version: optional VersionTag
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user