Untitled
wyc1230
plain_text
16 days ago
412 B
7
Indexable
Common_model/model.py def algorithm_latency_add(self, latency: int): ModelMetrics.algorithm_latency.labels( algorithm=self.main_algorithm, mode=self.env.mode, ).observe(float(latency)) Common_model/metrics.py algorithm_latency = Histogram( name="algorithm_latency", documentation="Algorithm Run Latency", labelnames=["algorithm", "mode"], buckets=DEFAULT_BUCKE
Editor is loading...
Leave a Comment