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

Function build_dataset

tests/python-gpu/test_gpu_pickling.py:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20def build_dataset() -> Tuple[np.ndarray, np.ndarray]:
21 N = 10
22 x = np.linspace(0, N * N, N * N)
23 x = x.reshape((N, N))
24 y = np.linspace(0, N, N)
25 return x, y
26
27
28def save_pickle(bst: Union[xgb.Booster, xgb.XGBModel], path: str) -> None:

Callers 4

test_load_pklMethod · 0.90
test_wrap_gpu_idMethod · 0.90
test_picklingMethod · 0.85
test_wrap_gpu_idMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected