From fdefa9784cc4e0ffb9f0e01e0c3014cfdf489c5f Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 6 Jun 2022 14:04:51 +0300 Subject: [PATCH] Add support for single value metric reporting (#400) --- clearml/logger.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/clearml/logger.py b/clearml/logger.py index 5f6e9698..6b6a9e5e 100644 --- a/clearml/logger.py +++ b/clearml/logger.py @@ -172,6 +172,17 @@ class Logger(object): # noinspection PyProtectedMember return self._task._reporter.report_scalar(title=title, series=series, value=float(value), iter=iteration) + def report_single_value(self, name, value): + # type: (str, float) -> None + """ + Reports a single value metric (for example, total experiment accuracy or mAP) + You can view the metrics in the **ClearML Web-App (UI)**, **RESULTS** tab, **SCALARS** sub-tab. + + :param name: Metric's name + :param value: Metric's value + """ + return self.report_scalar(title="Summary", series=name, value=value, iteration=-2**31) + def report_vector( self, title, # type: str