Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dmlc/xgboost
/ load_pickle
Function
load_pickle
tests/python-gpu/test_gpu_pickling.py:33–36 ·
view source on GitHub ↗
(path: str)
Source
from the content-addressed store, hash-verified
31
32
33
def
load_pickle(path: str) -> Any:
34
with
open(path,
"rb"
)
as
fd:
35
bst = pickle.load(fd)
36
return
bst
37
38
39
class
TestPickling:
Callers
5
test_load_pkl
Method · 0.90
test_context_is_removed
Method · 0.90
test_context_is_preserved
Method · 0.90
test_wrap_gpu_id
Method · 0.90
test_predict_sklearn_pickle
Method · 0.85
Calls
1
load
Method · 0.45
Tested by
no test coverage detected