Loggers package

TraceLogger Class

class pytorchart.Loggers.tracelogger.TraceLogger(*args, opts={}, vis=None, legend=[], env=None, port=8097, **kwargs)[source]

Logging arbitrary data by keys at runtime to a metering operation.

TraceLogger has the same idea as tnt.VisdomLogger, but with more access to plotly properties directly, with the downside of being less flexible. Also, it bypasses the visdom.scatter interface, and directly sends json data, so a few things which are rather difficult to do like specifing lines with a certain color and line style.

Though this is not meant to be used directly, it can be by all means:

Examples:
log(X, Y)[source]

Same interface as torchnet.log(), applies metadata to the X,Y Values, and sends them to the visdom plot.

Parameters:
  • X – list of integers - X-axis values of size self.num_lines
  • Y – list of integers - X-axis values of size self.num_lines
Returns:

None

save(path)[source]

saves self, and saves the visdom enviornment.

Parameters:path – valid filepath
Returns:None
viz

retrieves the Visdom Object

Returns:visom.Visdom Object