mirror of
https://github.com/clearml/clearml-serving
synced 2025-02-11 23:23:49 +00:00
pep8
This commit is contained in:
parent
5361bd3285
commit
782cd5dfc8
@ -83,8 +83,12 @@ class EndpointMetricLogging(BaseStruct):
|
|||||||
|
|
||||||
metrics = attrib(
|
metrics = attrib(
|
||||||
type=dict, default={},
|
type=dict, default={},
|
||||||
converter=lambda x: {k: v if isinstance(v, EndpointMetricLogging.MetricType)
|
converter=lambda x: {
|
||||||
else EndpointMetricLogging.MetricType(**v) for k, v in x.items()}) # key=variable, value=MetricType)
|
k: v if isinstance(v, EndpointMetricLogging.MetricType)
|
||||||
|
else EndpointMetricLogging.MetricType(**v) for k, v in x.items()
|
||||||
|
}
|
||||||
|
) # key=variable, value=MetricType
|
||||||
|
|
||||||
# example:
|
# example:
|
||||||
# {"x1": dict(type="scalar", buckets=[0,1,2,3]),
|
# {"x1": dict(type="scalar", buckets=[0,1,2,3]),
|
||||||
# "y": dict(type="enum", buckets=["cat", "dog"]).
|
# "y": dict(type="enum", buckets=["cat", "dog"]).
|
||||||
|
Loading…
Reference in New Issue
Block a user