(param: dict, dmat: xgb.DMatrix, num_rounds: int)
| 23 | |
| 24 | |
| 25 | def 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 | |
| 38 | class TestLinear: |
no test coverage detected