def __init__(self, last_k_epochs=5, median=True):
        """
        Args:
            last_k_epochs (int): Use the time spent on last k epochs to estimate total time left.
            median (bool): Use the mean or median time spent on last k epochs.
        """
        self._times = deque(maxlen=last_k_epochs)
        self._median = median

        Args:
            last_k_epochs (int): Use the time spent on last k epochs to estimate total time left.
            median (bool): Use the mean or median time spent on last k epochs.
        
tensorpack/callbacks/misc.py