-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COMPAT: ensure we pass numpy array to cKDtree and combat with sklearn 1.3.0 #107
Conversation
mmm. New failures are caused by fresh scikit-learn 1.3.0 where |
Apparently |
Codecov Report
@@ Coverage Diff @@
## main #107 +/- ##
==========================================
+ Coverage 52.38% 52.56% +0.18%
==========================================
Files 12 12
Lines 1844 1851 +7
Branches 316 317 +1
==========================================
+ Hits 966 973 +7
Misses 821 821
Partials 57 57
|
Note to myself that we may need to eventually revert the sklearn compat part because it is a regression in upstream and they will restore the original behaviour (property, not a method). |
|
||
if metric in KDTree.valid_metrics: | ||
if Version(sklearn.__version__) >= Version("1.3.0"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be
if Version(sklearn.__version__) == Version("1.3.0"):
The change was reverted in upstream after my report.
It seems that the DataFrame input to query worked but was never actually supported. This ensures we always cast it to a numpy array.
Closes #106
We should probably cut a patch release with this as any env with new scipy will have this issue.