MCPcopy 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
33def load_pickle(path: str) -> Any:
34 with open(path, "rb") as fd:
35 bst = pickle.load(fd)
36 return bst
37
38
39class TestPickling:

Callers 5

test_load_pklMethod · 0.90
test_wrap_gpu_idMethod · 0.90

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected