Reduce regularization in GPU gblinear test. (#8010)

This commit is contained in:
Jiaming Yuan 2022-06-20 23:55:12 +08:00 committed by GitHub
parent e58e417603
commit d285d6ba2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,9 +42,13 @@ class TestGPULinear:
# Loss is not guaranteed to always decrease because of regularisation parameters
# We test a weaker condition that the loss has not increased between the first and last
# iteration
@given(parameter_strategy, strategies.integers(10, 50),
tm.dataset_strategy, strategies.floats(1e-5, 1.0),
strategies.floats(1e-5, 1.0))
@given(
parameter_strategy,
strategies.integers(10, 50),
tm.dataset_strategy,
strategies.floats(1e-5, 0.8),
strategies.floats(1e-5, 0.8)
)
@settings(deadline=None, print_blob=True)
def test_gpu_coordinate_regularised(self, param, num_rounds, dataset, alpha, lambd):
assume(len(dataset.y) > 0)