Skip to content

Conversation

@Prakhyath07
Copy link
Owner

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"],
}

Reference Issue

I think mistake with recent update for sampling strategy of oversampler in smote.
majority mentioned in place of minority

What does this implement/fix? Explain your changes.

Any other comments?

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"],
    }
@Prakhyath07 Prakhyath07 merged commit 4bfefba into master Dec 23, 2022
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.

2 participants