MCPcopy
hub / github.com/hyperopt/hyperopt / call_domain

Function call_domain

hyperopt/ipy.py:241–250  ·  view source on GitHub ↗
(domain, spec, ctrl, trial, view, eid, tid)

Source from the content-addressed store, hash-verified

239
240
241def call_domain(domain, spec, ctrl, trial, view, eid, tid):
242 rv = {"loss": None, "status": "fail"}
243 # TODO: rt unused
244 rt = coarse_utcnow()
245 # print "in call domain for spec", str(spec)
246 promise = None
247 fn, pyll_rval = domain.evaluate_async(spec, ctrl)
248 promise = IPYAsync(view.apply_async(fn, pyll_rval), domain, rv, eid, tid, ctrl)
249
250 return promise

Callers 1

fminMethod · 0.85

Calls 3

coarse_utcnowFunction · 0.85
IPYAsyncClass · 0.85
evaluate_asyncMethod · 0.80

Tested by

no test coverage detected