MCPcopy
hub / github.com/hyperopt/hyperopt / trials_from_docs

Function trials_from_docs

hyperopt/base.py:692–700  ·  view source on GitHub ↗

Construct a Trials base class instance from a list of trials documents

(docs, validate=True, **kwargs)

Source from the content-addressed store, hash-verified

690
691
692def trials_from_docs(docs, validate=True, **kwargs):
693 """Construct a Trials base class instance from a list of trials documents"""
694 rval = Trials(**kwargs)
695 if validate:
696 rval.insert_trial_docs(docs)
697 else:
698 rval._insert_trial_docs(docs)
699 rval.refresh()
700 return rval
701
702
703class Ctrl:

Callers 2

idxs_vals_from_idsMethod · 0.90
test_seedingMethod · 0.90

Calls 4

insert_trial_docsMethod · 0.95
_insert_trial_docsMethod · 0.95
refreshMethod · 0.95
TrialsClass · 0.85

Tested by 2

idxs_vals_from_idsMethod · 0.72
test_seedingMethod · 0.72