-
Notifications
You must be signed in to change notification settings - Fork 552
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
Remove 'seed' and 'output_type' deprecated features #3739
Remove 'seed' and 'output_type' deprecated features #3739
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-0.20 #3739 +/- ##
==============================================
Coverage ? 86.07%
==============================================
Files ? 224
Lines ? 17071
Branches ? 0
==============================================
Hits ? 14694
Misses ? 2377
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@@ -922,7 +907,7 @@ def kneighbors_graph(X=None, n_neighbors=5, mode='connectivity', verbose=False, | |||
metric=metric, | |||
p=p, | |||
metric_params=metric_params, | |||
output_type=output_type, | |||
output_type=cuml.global_settings.root_cm.output_type |
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.
I'm open to suggestion on this one. There might be a better way to get the output type.
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.
I think if the user uses a context manager to set this, it would be set that way so you don’t need to pass it here (you might need to do some testing to see if I’m correct)
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.
If I delete this line, test_nearest_neighbors.py::test_knn_graph
would fail because the output_type
is replaced to mirror
by the api_return_sparse_array
function decorator, and NearestNeighbors
cannot be initialized with output_type==mirror
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.
Quick first review it looks good, I saw only a couple of things I commented on
@@ -922,7 +907,7 @@ def kneighbors_graph(X=None, n_neighbors=5, mode='connectivity', verbose=False, | |||
metric=metric, | |||
p=p, | |||
metric_params=metric_params, | |||
output_type=output_type, | |||
output_type=cuml.global_settings.root_cm.output_type |
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.
I think if the user uses a context manager to set this, it would be set that way so you don’t need to pass it here (you might need to do some testing to see if I’m correct)
@gpucibot merge |
Closes rapidsai#3646. This PR will remove 'seed' and 'output_type' deprecated features. Authors: - Micka (https://github.com/lowener) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#3739
Closes #3646.
This PR will remove 'seed' and 'output_type' deprecated features.