Skip to content

MAINT Parameters validation for utils.extmath.weighted_mode #26884

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

Closed

Conversation

max-drexler
Copy link

Reference Issues/PRs

Towards #24862

What does this implement/fix? Explain your changes.

  • Added parameter validation to utils.extmath.weighted_mode using the validate_params decorator.

@github-actions
Copy link

github-actions bot commented Jul 24, 2023

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 4075c63. Link to the linter CI: here

@jeremiedbb
Copy link
Member

Thanks for the PR @max-drexler. We decided to not validate this function in the end like most functions in utils because they are kind of semi-public (i.e. they are public but we'd rather have them private, more or less). Sorry about the confusion. With that in mind I'm closing this PR.

@jeremiedbb jeremiedbb closed this Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants