Shortcuts

Source code for catalyst.utils.meters.meter

"""
Meters provide a way to keep track of important statistics in an online manner.
"""


[docs]class Meter(object): """ This class is abstract, but provides a standard interface for all meters to follow. """
[docs] def reset(self): """Resets the meter to default settings.""" pass
[docs] def add(self, value): """Log a new value to the meter. Args: value: Next result to include. """ pass
[docs] def value(self): """Get the value of the meter in the current state.""" pass