class_docstr: The class for driving the Bayesian optimization according to the configuration.
class_docstr_tok: ["The","class","for","driving","the","Bayesian","optimization","according","to","the","configuration","."]
docstr: Defines the stopping criterion.
docstr_tok: ["Defines","the","stopping","criterion","."]
code: def _check_stop(self, iters, elapsed_time, converged):
      """
      Defines the stopping criterion.
      """
  
      r_c = self.config["resources"]
  
      stop = False
      if converged == 0:
          stop = True
      if (
          r_c["maximum-iterations"] != "NA"
          and iters >= r_c["maximum-iterations"]
      ):
          stop = True
      if (
          r_c["max-run-time"] != "NA"
          and elapsed_time / 60.0 >= r_c["max-run-time"]
      ):
          stop = True
      return stop
  
file_path: GPyOpt/GPyOpt/interface/driver.py
imports: import numpy
  import time
  from ..methods import BayesianOptimization
label_desc: Use image node_id 7 for calling the BODriver obj's underlying member method code with example usage: obj._check_stop(iters, elapsed_time, converged) and returns: stop