class_docstr: Stop if the improvement over the last n iterations is below a threshold.
class_docstr_tok: ["Stop","if","the","improvement","over","the","last","n","iterations","is","below","a","threshold","."]
code: def _criterion(self, result):
      if len(result.func_vals) <= self.n_iterations:
          return False
  
      cummin = np.minimum.accumulate(result.func_vals)
      return (
          cummin[-self.n_iterations - 1] - cummin[-1] <= self.threshold
      )
  
imports: from time import time
  import numpy
  from guild._skopt.utils import dump
label_desc: Use image node_id 2 for calling the HollowIterationsStopper obj's underlying member method code with example usage: obj._criterion(result) and returns: unknown, False