Skip to content

Commit

Permalink
FIX: additional linreg GPU threshold upgrade (#1501) (#1516)
Browse files Browse the repository at this point in the history
(cherry picked from commit a43c257)

Co-authored-by: ethanglaser <[email protected]>
  • Loading branch information
mergify[bot] and ethanglaser authored Sep 28, 2023
1 parent 23c6be1 commit 5165cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onedal/linear_model/tests/test_linear_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_full_results(queue, dtype):
model.fit(X, y, queue=queue)

if queue.sycl_device.is_gpu:
tol = 2.5e-3 if model.coef_.dtype == np.float32 else 1e-5
tol = 5e-3 if model.coef_.dtype == np.float32 else 1e-5
else:
tol = 2e-3 if model.coef_.dtype == np.float32 else 1e-5
assert_allclose(coef, model.coef_.T, rtol=tol)
Expand Down

0 comments on commit 5165cc0

Please sign in to comment.