MCPcopy
hub / github.com/hyperopt/hyperopt / spec_from_misc

Function spec_from_misc

hyperopt/base.py:208–217  ·  view source on GitHub ↗
(misc)

Source from the content-addressed store, hash-verified

206
207
208def spec_from_misc(misc):
209 spec = {}
210 for k, v in list(misc["vals"].items()):
211 if len(v) == 0:
212 pass
213 elif len(v) == 1:
214 spec[k] = v[0]
215 else:
216 raise NotImplementedError("multiple values", (k, v))
217 return spec
218
219
220def validate_timeout(timeout):

Callers 2

fminMethod · 0.85
run_oneMethod · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected