mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Add report_histogram is the same as report_vector
This commit is contained in:
parent
74fe96f17c
commit
39ba074b70
@ -193,7 +193,29 @@ class Logger(object):
|
|||||||
:type values: [float]
|
:type values: [float]
|
||||||
:param iteration: Iteration number
|
:param iteration: Iteration number
|
||||||
:type iteration: int
|
:type iteration: int
|
||||||
:param labels: optional label per entry in the vector (for histogram)
|
:param labels: optional, labels for each bar group.
|
||||||
|
:type labels: list of strings.
|
||||||
|
:param xlabels: optional label per entry in the vector (bucket in the histogram)
|
||||||
|
:type xlabels: list of strings.
|
||||||
|
"""
|
||||||
|
return self.report_histogram(title, series, values, iteration, labels=labels, xlabels=xlabels)
|
||||||
|
|
||||||
|
def report_histogram(self, title, series, values, iteration, labels=None, xlabels=None):
|
||||||
|
"""
|
||||||
|
Report a histogram plot
|
||||||
|
|
||||||
|
:param title: Title (AKA metric)
|
||||||
|
:type title: str
|
||||||
|
:param series: Series (AKA variant)
|
||||||
|
:type series: str
|
||||||
|
:param values: Reported values (or numpy array)
|
||||||
|
:type values: [float]
|
||||||
|
:param iteration: Iteration number
|
||||||
|
:type iteration: int
|
||||||
|
:param labels: optional, labels for each bar group.
|
||||||
|
:type labels: list of strings.
|
||||||
|
:param xlabels: optional label per entry in the vector (bucket in the histogram)
|
||||||
|
:type xlabels: list of strings.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not isinstance(values, np.ndarray):
|
if not isinstance(values, np.ndarray):
|
||||||
|
Loading…
Reference in New Issue
Block a user