neodroidvision.utilities.misc.metric_utilities.SmoothedValue

class neodroidvision.utilities.misc.metric_utilities.SmoothedValue(window_size=20, fmt: Optional[str] = None)[source]

Bases: object

Track a series of values and provide access to smoothed values over a window or the global series average.

__init__(window_size=20, fmt: Optional[str] = None)[source]

Methods

__init__([window_size, fmt])

synchronise_between_processes_torch()

Warning: does not synchronize the deque!

update(value[, n])

param value

Attributes

avg

Returns:

global_avg

Returns:

max

Returns:

median

Returns:

value

Returns:

property avg

Returns:

property global_avg

Returns:

property max

Returns:

property median

Returns:

synchronise_between_processes_torch()[source]

Warning: does not synchronize the deque!

update(value, n=1)[source]
Parameters
  • value

  • n

property value

Returns: