(self, param, num_rounds, dataset, coord_param)
| 44 | ) |
| 45 | @settings(deadline=None, max_examples=20, print_blob=True) |
| 46 | def test_coordinate(self, param, num_rounds, dataset, coord_param): |
| 47 | param['updater'] = 'coord_descent' |
| 48 | param.update(coord_param) |
| 49 | param = dataset.set_params(param) |
| 50 | result = train_result(param, dataset.get_dmat(), num_rounds)['train'][dataset.metric] |
| 51 | note(result) |
| 52 | assert tm.non_increasing(result, 5e-4) |
| 53 | |
| 54 | # Loss is not guaranteed to always decrease because of regularisation parameters |
| 55 | # We test a weaker condition that the loss has not increased between the first and last |
nothing calls this directly
no test coverage detected