Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_func
Function · 0.85
obj_func2
Function · 0.85
obj_func_for_cache_mode
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected