(name: str, config: Dict[str, Any])
| 14 | |
| 15 | |
| 16 | def run_model_param_check(name: str, config: Dict[str, Any]) -> None: |
| 17 | assert config["learner"]["learner_model_param"]["num_feature"] == str(4) |
| 18 | assert config["learner"]["learner_train_param"]["booster"] == "gbtree" |
| 19 | |
| 20 | booster = config["learner"]["gradient_booster"] |
| 21 | assert booster["name"] == "gbtree" |
| 22 | if name.find("1.0.0rc1") != -1: |
| 23 | # There's no `num_parallel_tree` in the model parameter in 1.0 (it was a |
| 24 | # configuration instead of a model parameter). |
| 25 | return |
| 26 | assert booster["gbtree_model_param"]["num_parallel_tree"] == str(gm.kForests) |
| 27 | |
| 28 | |
| 29 | def run_booster_check(booster: xgboost.Booster, name: str) -> None: |
no outgoing calls
no test coverage detected