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
Signed-off-by: Jinfeng <[email protected]>
  • Loading branch information
lijinf2 committed Aug 8, 2023
1 parent 0a10f5c commit 8ad5d3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/tests/test_linear_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ 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 8ad5d3b

Please sign in to comment.