drytorch.trackers.visdom
Module containing a tracker for visualizations on visdom.
Classes
Annotations for optional settings in visdom. |
|
|
Tracker that uses visdom as backend. |
- class VisdomOpts[source]
Bases:
TypedDictAnnotations for optional settings in visdom.
See: https://github.com/fossasia/visdom/blob/master/py/visdom/__init__.py.
- class VisdomPlotter(server: str = 'http://localhost', port: int = 8097, opts: VisdomOpts | None = None, model_names: Iterable[str] = (), source_names: Iterable[str] = (), metric_names: Iterable[str] = (), metric_loader: MetricLoader | None = None, start: int = 1)[source]
Bases:
BasePlotter[str]Tracker that uses visdom as backend.
- opts
plot options.
Initialize.
- Parameters:
server (str) – the address of the server.
port (int) – the port for the connection:
opts (VisdomOpts) – plot options.
model_names (Iterable[str]) – the names of the models to plot. Defaults to all.
metric_names (Iterable[str]) – the names of the metrics to plot. Defaults to all.
source_names (Iterable[str]) – the names of the sources to plot. Defaults to all.
metric_loader (MetricLoader | None) – a tracker that can load metrics from a previous run.
start (int) – if positive, the epoch from which to start plotting; if negative, the last number of epochs. Defaults to all.
- property viz: Visdom
The active Visdom instance.
- Raises:
AccessOutsideScopeError – if no run has been started yet.