Skip to content

Commit

Permalink
fix sklearn version check formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns committed Jul 1, 2023
1 parent a06c0a5 commit 9de8085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions test/regression/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@
)

SKLEARN_GEQ_13 = ( # get the sklearn version
int(
pkg_resources.get_distribution(
"scikit-learn",
).version.split(
"."
)[1]
)
>= 3
int(pkg_resources.get_distribution("scikit-learn").version.split(".")[1]) >= 3
)


Expand Down
9 changes: 1 addition & 8 deletions test/unit/samplers/extrapolative/test_kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@
from astartes.utils.warnings import ImperfectSplittingWarning

SKLEARN_GEQ_13 = ( # get the sklearn version
int(
pkg_resources.get_distribution(
"scikit-learn",
).version.split(
"."
)[1]
)
>= 3
int(pkg_resources.get_distribution("scikit-learn").version.split(".")[1]) >= 3
)


Expand Down

0 comments on commit 9de8085

Please sign in to comment.