Skip to content
Erik Gärtner edited this page Sep 12, 2018 · 3 revisions

Since Hyperdock 0.9.0 there has been support for visualizing line plots directly in the Hyperdock WebUI.

The method for displaying graphs is similar to the method for reporting the loss. The Target Image can optionally write the graph data to a file /hyperdock/graphs.json. This file is read at every update sent by the worker and towards the end when the loss file is read.

Format

The format of the graph data file is very strict and checked upon reading it. If it deviates from this format the file will not be processed, see the Worker's log for an error message.

The file can contain multiple plots and each plot can contain multiple data series. Below is the format of the graphs.json file.

[{
  "name": "name of a plot",
  "x_axis": "the x-axis name",
  "y_axis": "the y-axis name",
  "series": [{
    "label": "the name of the data serie",
    "x": [1, 2, 3],
    "y": [1.0, 2.0, 3.0],
  }, {
    "label": "the second serie",
    "x": [1, 2, 3],
    "y": [2.0, 4.0, 9.0],
  }]
}]
Clone this wiki locally