- Notifications
You must be signed in to change notification settings - Fork1.3k
FIX make sure to accept "minority" as a valid strategy in over-samplers#964
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
updated majority to minority in str options: _parameter_constraints: dict = { "sampling_strategy": [ Interval(numbers.Real, 0, 1, closed="right"), StrOptions({"auto", "minority", "not minority", "not majority", "all"}), Mapping, callable, ], "random_state": ["random_state"], }
update oversampler base.py
codecovbot commentedDec 23, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportBase:96.50% // Head:94.25% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@## master #964 +/- ##==========================================- Coverage 96.50% 94.25% -2.25%========================================== Files 103 103 Lines 7264 7280 +16 Branches 1068 1071 +3 ==========================================- Hits 7010 6862 -148- Misses 147 312 +165+ Partials 107 106 -1
Help us with your feedback. Take ten seconds to tell ushow you rate us. Have a feature suggestion?Share it here. ☔ View full report at Codecov. |
I added some non-regression tests and an entry in the changelog. |
Thanks@Prakhyath07 I will fix the CI builds that are failing. There are not related. |
…rs (#964)Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
From my side i didn't find any other issue |
dront78 commentedMar 18, 2023
where is 0.10.1? |
On PyPI and conda-forge, e.g.https://pypi.org/project/imbalanced-learn/ |
Reference Issue
What does this implement/fix? Explain your changes.
while using smapling strategy ="minority" we were getting error. i found issue in base.py of oversampler where in _parameter constraint majority was used in stroptions instead of minority
Any other comments?