Skip to content
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

API duck-typing for n_neighbors in CNN and deprecate estimator_ #891

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

glemaitre
Copy link
Member

This PR does:

  • deprecate estimator_ in favour of n_neighbors_
  • accept any arbitrary knn classifier that has a n_neighbors parameter

@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Merging #891 (ba898fb) into master (e802a19) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #891      +/-   ##
==========================================
- Coverage   97.30%   97.29%   -0.01%     
==========================================
  Files          97       97              
  Lines        6337     6352      +15     
  Branches      712      713       +1     
==========================================
+ Hits         6166     6180      +14     
- Misses        102      103       +1     
  Partials       69       69              
Impacted Files Coverage Δ
...rototype_selection/_condensed_nearest_neighbour.py 100.00% <100.00%> (ø)
...election/tests/test_condensed_nearest_neighbour.py 100.00% <100.00%> (ø)
imblearn/datasets/tests/test_zenodo.py 89.18% <0.00%> (-2.71%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e802a19...ba898fb. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant