Skip to content

Commit

Permalink
get pytests work for both cuml 23.08 and 23.06
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinf2 committed Aug 8, 2023
1 parent 6605ee1 commit cb213f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/tests/test_linear_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ def test_default_cuml_params() -> None:
[CumlLinearRegression, Ridge, CD], ["handle", "output_type"]
)
spark_params = LinearRegression()._get_cuml_params_default()

import cuml
from packaging import version
if version.parse(cuml.__version__) < version.parse('23.08.00'):
spark_params.pop("copy_X")
assert cuml_params == spark_params


Expand Down

0 comments on commit cb213f2

Please sign in to comment.