MCPcopy
hub / github.com/hyperopt/hyperopt / idxs_vals_from_ids

Method idxs_vals_from_ids

hyperopt/tests/test_base.py:95–99  ·  view source on GitHub ↗
(self, ids, seed)

Source from the content-addressed store, hash-verified

93 seed_randomizes = True
94
95 def idxs_vals_from_ids(self, ids, seed):
96 docs = self.suggest(ids, self.domain, Trials(), seed)
97 trials = trials_from_docs(docs)
98 idxs, vals = miscs_to_idxs_vals(trials.miscs)
99 return idxs, vals
100
101 def test_arbitrary_ids(self):
102 # -- suggest implementations should work for arbitrary ID

Callers 2

test_arbitrary_idsMethod · 0.95
test_seed_randomizesMethod · 0.95

Calls 4

TrialsClass · 0.90
trials_from_docsFunction · 0.90
miscs_to_idxs_valsFunction · 0.90
suggestMethod · 0.80

Tested by

no test coverage detected