MCPcopy
hub / github.com/hyperopt/hyperopt / refresh

Method refresh

hyperopt/base.py:353–365  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

351 raise NotImplementedError("")
352
353 def refresh(self):
354 # In MongoTrials, this method fetches from database
355 if self._exp_key is None:
356 self._trials = [
357 tt for tt in self._dynamic_trials if tt["state"] in JOB_VALID_STATES
358 ]
359 else:
360 self._trials = [
361 tt
362 for tt in self._dynamic_trials
363 if (tt["state"] in JOB_VALID_STATES and tt["exp_key"] == self._exp_key)
364 ]
365 self._ids.update([tt["tid"] for tt in self._trials])
366
367 @property
368 def trials(self):

Callers 11

__init__Method · 0.95
delete_allMethod · 0.95
trials_from_docsFunction · 0.95
viewMethod · 0.45
serial_evaluateMethod · 0.45
block_until_doneMethod · 0.45
runMethod · 0.45
exhaustMethod · 0.45
__init__Method · 0.45
test_insert_syncMethod · 0.45
test_best_trialMethod · 0.45

Calls 1

updateMethod · 0.45

Tested by 2

test_insert_syncMethod · 0.36
test_best_trialMethod · 0.36