class_docstr: Augments early stopping in XGBoost to also consider time_limit, memory usage, and usage of adaptive early stopping methods.
  
  Parameters
  ----------
  rounds : int or tuple
     If int, The possible number of rounds without the trend occurrence.
     If tuple, contains early stopping class as first element and class init kwargs as second element.
class_docstr_tok: ["Augments","early","stopping","in","XGBoost","to","also","consider","time_limit",",","memory","usage",",","and","usage","of","adaptive","early","stopping","methods",".","Parameters","--","--","--","--","--","rounds",":","int","or","tuple","If","int",",","The","possible","number","of","rounds","without","the","trend","occurrence",".","If","tuple",",","contains","early","stopping","class","as","first","element","and","class","init","kwargs","as","second","element","."]
code: def __init__(
      self,
      rounds,
      time_limit=None,
      start_time=None,
      verbose=False,
      min_delta=2e-6,
      **kwargs,
  ):
      if rounds is None:
          # Disable early stopping via rounds
          rounds = 999999
      # Add a tiny min_delta so training doesn't go on for extremely long if only tiny improvements are being made
      #  (can occur when validation error is almost 0, such as val log_loss <0.00005)
      super().__init__(rounds=999999, min_delta=min_delta, **kwargs)
      if isinstance(rounds, int):
          self.es = SimpleES(patience=rounds)
      else:
          self.es = rounds[0](**rounds[1])
      self.time_limit = time_limit
      self.start_time = start_time
      self.verbose = verbose
      self._mem_status = None
      self._mem_init_rss = None
  
file_path: autogluon/tabular/src/autogluon/tabular/models/xgboost/callbacks.py
imports: import logging
  import time
  from xgboost.callback import EarlyStopping
  from autogluon.common.utils.lite import disable_if_lite_mode
  from autogluon.common.utils.resource_utils import ResourceManager
  from autogluon.core.utils.early_stopping import SimpleES
label_desc: Use image node_id 1 to create a new EarlyStoppingCustom object from inherited base classes: EarlyStopping with example: obj = EarlyStoppingCustom(rounds, time_limit, start_time, verbose, min_delta)