MCPcopy Create free account
hub / github.com/TPCD/DCCL / __init__

Method __init__

project_utils/visualization_utils.py:950–963  ·  view source on GitHub ↗

Args: fields: Currently unused plot_type: The name of the plot type, in Visdom

(self, plot_type, pad_value=1, nrow=2, fields=None, win=None, env=None, opts={}, port=8097, server="localhost")

Source from the content-addressed store, hash-verified

948 '''
949
950 def __init__(self, plot_type, pad_value=1, nrow=2, fields=None, win=None, env=None, opts={}, port=8097, server="localhost"):
951 '''
952 Args:
953 fields: Currently unused
954 plot_type: The name of the plot type, in Visdom
955
956
957 '''
958 super(VisdomFeatureMapsLogger, self).__init__(fields, win, env, opts, port, server)
959 self.plot_type = plot_type
960 self.pad_value = pad_value
961 self.nrow = nrow
962 self.chart = getattr(self.viz, plot_type)
963 self.viz_logger = self._viz_prototype(self.chart)
964
965 def log(self, *args, **kwargs):
966 self.viz_logger(*args, **kwargs)

Callers

nothing calls this directly

Calls 2

_viz_prototypeMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected