MCPcopy
hub / github.com/hyperopt/hyperopt / __next__

Method __next__

hyperopt/fmin.py:351–360  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

349 return self
350
351 def __next__(self):
352 self.run(1, block_until_done=self.asynchronous)
353 if self.early_stop_fn is not None:
354 stop, kwargs = self.early_stop_fn(self.trials, *self.early_stop_args)
355 self.early_stop_args = kwargs
356 if stop:
357 raise StopIteration()
358 if len(self.trials) >= self.max_evals:
359 raise StopIteration()
360 return self.trials
361
362 def exhaust(self):
363 n_done = len(self.trials)

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected