Skip to content

Commit

Permalink
Reduce regularization in GPU gblinear test. (#8010)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored Jun 20, 2022
1 parent e58e417 commit d285d6b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/python-gpu/test_gpu_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ def test_gpu_coordinate(self, param, num_rounds, dataset):
# 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)
Expand Down

0 comments on commit d285d6b

Please sign in to comment.