class_docstr: Estimate the time left until completion of training.
docstr: 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.
docstr_tok: ["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","."]
code: 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
  
imports: import numpy
  import os
  import time
  from collections import deque
  from ..utils import logger
  from ..utils.utils import humanize_time_delta
  from .base import Callback
label_desc: Use image node_id 1 to create a new EstimatedTimeLeft object from inherited base classes: Callback with example: obj = EstimatedTimeLeft(last_k_epochs, median)