MCPcopy Index your code
hub / github.com/guofei9987/scikit-opt / costly_function

Function costly_function

examples/example_function_modes.py:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 # cost_type can be 'io_costly' or 'cpu_costly'
11 if task_type == 'io_costly':
12 def costly_function():
13 time.sleep(0.1)
14 return 1
15 else:
16 def costly_function():
17 n = 10000

Callers 3

obj_funcFunction · 0.85
obj_func2Function · 0.85
obj_func_for_cache_modeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected