MCPcopy Index your code
hub / github.com/hyperopt/hyperopt / map

Method map

hyperopt/pyll/base.py:84–90  ·  view source on GitHub ↗

pure - True is assertion that fn does not modify seq[i]

(self, fn, seq, pure=False)

Source from the content-addressed store, hash-verified

82 return self._new_apply("list", [as_apply(init)], {}, o_len=None, pure=True)
83
84 def map(self, fn, seq, pure=False):
85 """
86 pure - True is assertion that fn does not modify seq[i]
87 """
88 return self._new_apply(
89 "map", [as_apply(fn), as_apply(seq)], {}, o_len=seq.o_len, pure=pure
90 )
91
92 def range(self, *args):
93 return self._new_apply("range", args, {}, o_len=None, pure=True)

Callers 1

test_spark_contextMethod · 0.80

Calls 2

_new_applyMethod · 0.95
as_applyFunction · 0.85

Tested by 1

test_spark_contextMethod · 0.64