Skip to content

Conversation

ZeeshanLone
Copy link
Contributor

Reference Issues/PRs

Towards #24862

What does this implement/fix? Explain your changes.

Added parameter validation for metrics.make_scorer

Any other comments?

Test passes pytest -vl sklearn/tests/test_public_functions.py

@jeremiedbb jeremiedbb added No Changelog Needed Validation related to input validation labels Mar 6, 2023
Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @still-learning-ev. Looks like there are linting issues. Don't forget to run black and flake8 before pushing or install pre-commit :)

@ZeeshanLone
Copy link
Contributor Author

Thanks for the suggestion will keep in mind for future PRS

@ZeeshanLone
Copy link
Contributor Author

Ran the flake8 test after running black which autoformatted some code I had to fix it again. Everything is set now flake 8 passes

@jeremiedbb
Copy link
Member

after running black which autoformatted some code I had to fix it again

Sorry I forgot to tell you to install version 22.3.0 of black. You probably have a more recent version. I reverted the unrelated changes.

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @still-learning-ev

@jeremiedbb jeremiedbb merged commit 20ad9cd into scikit-learn:main Mar 6, 2023
@ZeeshanLone ZeeshanLone deleted the make_scorer branch March 7, 2023 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants