-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Document developer utils for parameter validation #27038
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
Comments
We did not document it for the following reason:
We have common tests: scikit-learn/sklearn/tests/test_common.py Lines 495 to 508 in acf60de
and the following file for the functions: https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/tests/test_public_functions.py |
If the documentation is internal, then we can start with documentation at the top of the file:
We do something similar for the Pairwise distance ArgK min:
|
Yes, I meant in particular documentation for ourselves. If I were to write a new estimator class in scikit-learn, I would currently be lost and start by copy & paste an arbitrary existing class. |
OK, I totally see your point. I will address this issue. |
/take |
We could extend the "maintainers" section of the doc to explain things like that and other conventions we need to have in mind when reviewing PRs |
Describe the issue linked to the documentation
#22722 and #24862 introduced parameter validation.
These tools should be documented under https://scikit-learn.org/dev/developers/utilities.html#validation-tools.
In addition, a lot of tests for raising errors in case of bad input seems to disappear. Are there common tests for it or is it still recommended to write tests a la
Suggest a potential alternative/fix
No response
The text was updated successfully, but these errors were encountered: