MCPcopy Create free account
hub / github.com/dmlc/xgboost / save_pickle

Function save_pickle

tests/python-gpu/test_gpu_pickling.py:28–30  ·  view source on GitHub ↗
(bst: Union[xgb.Booster, xgb.XGBModel], path: str)

Source from the content-addressed store, hash-verified

26
27
28def save_pickle(bst: Union[xgb.Booster, xgb.XGBModel], path: str) -> None:
29 with open(path, "wb") as fd:
30 pickle.dump(bst, fd)
31
32
33def load_pickle(path: str) -> Any:

Callers 4

run_picklingMethod · 0.85
test_wrap_gpu_idMethod · 0.85
run_testMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected