MCPcopy
hub / github.com/hyperopt/hyperopt / _new_apply

Method _new_apply

hyperopt/pyll/base.py:60–66  ·  view source on GitHub ↗
(self, name, args, kwargs, o_len, pure)

Source from the content-addressed store, hash-verified

58 }
59
60 def _new_apply(self, name, args, kwargs, o_len, pure):
61 pos_args = [as_apply(a) for a in args]
62 named_args = [(k, as_apply(v)) for (k, v) in list(kwargs.items())]
63 named_args.sort()
64 return Apply(
65 name, pos_args=pos_args, named_args=named_args, o_len=o_len, pure=pure
66 )
67
68 def dict(self, *args, **kwargs):
69 # XXX: figure out len

Callers 11

dictMethod · 0.95
intMethod · 0.95
floatMethod · 0.95
lenMethod · 0.95
listMethod · 0.95
mapMethod · 0.95
rangeMethod · 0.95
maxMethod · 0.95
minMethod · 0.95
getattrMethod · 0.95
__call__Method · 0.80

Calls 3

as_applyFunction · 0.85
ApplyClass · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected