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

Function train_result

tests/python/test_linear.py:25–35  ·  view source on GitHub ↗
(param: dict, dmat: xgb.DMatrix, num_rounds: int)

Source from the content-addressed store, hash-verified

23
24
25def train_result(param: dict, dmat: xgb.DMatrix, num_rounds: int) -> Dict[str, Dict]:
26 result: Dict[str, Dict] = {}
27 xgb.train(
28 param,
29 dmat,
30 num_rounds,
31 evals=[(dmat, "train")],
32 verbose_eval=False,
33 evals_result=result,
34 )
35 return result
36
37
38class TestLinear:

Callers 4

test_coordinateMethod · 0.70
test_shotgunMethod · 0.70

Calls 1

trainMethod · 0.45

Tested by

no test coverage detected