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

Method test_shotgun_regularised

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

Source from the content-addressed store, hash-verified

99 )
100 @settings(deadline=None, max_examples=20, print_blob=True)
101 def test_shotgun_regularised(self, param, num_rounds, dataset, alpha, lambd):
102 param['updater'] = 'shotgun'
103 param['alpha'] = alpha
104 param['lambda'] = lambd
105 param = dataset.set_params(param)
106 result = train_result(param, dataset.get_dmat(), num_rounds)['train'][dataset.metric]
107 note(result)
108 assert tm.non_increasing([result[0], result[-1]])

Callers

nothing calls this directly

Calls 3

get_dmatMethod · 0.80
train_resultFunction · 0.70
set_paramsMethod · 0.45

Tested by

no test coverage detected