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

Method test_coordinate_regularised

tests/python/test_linear.py:66–74  ·  view source on GitHub ↗
(self, param, num_rounds, dataset, coord_param, alpha, lambd)

Source from the content-addressed store, hash-verified

64 )
65 @settings(deadline=None, max_examples=20, print_blob=True)
66 def test_coordinate_regularised(self, param, num_rounds, dataset, coord_param, alpha, lambd):
67 param['updater'] = 'coord_descent'
68 param['alpha'] = alpha
69 param['lambda'] = lambd
70 param.update(coord_param)
71 param = dataset.set_params(param)
72 result = train_result(param, dataset.get_dmat(), num_rounds)['train'][dataset.metric]
73 note(result)
74 assert tm.non_increasing([result[0], result[-1]])
75
76 @given(
77 parameter_strategy, strategies.integers(10, 50), tm.make_dataset_strategy()

Callers

nothing calls this directly

Calls 4

get_dmatMethod · 0.80
train_resultFunction · 0.70
updateMethod · 0.45
set_paramsMethod · 0.45

Tested by

no test coverage detected