imbalanced-learn
imbalanced-learn copied to clipboard
API duck-typing for n_neighbors in CNN and deprecate estimator_
This PR does:
- deprecate
estimator_
in favour ofn_neighbors_
- accept any arbitrary knn classifier that has a
n_neighbors
parameter
Codecov Report
Merging #891 (ba898fb) into master (e802a19) will decrease coverage by
0.00%
. The diff coverage is100.00%
.
@@ 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%) |
:arrow_down: |
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.