8000
[Question, Documentation] Metadata Routing, indicate metadata is required by a method #28324
Labels
Describe the issue linked to the documentation
From my understanding, there is no way to specify that some metadata is required with
set_*_request(...)
.Doc: https://scikit-learn.org/stable/metadata_routing.html#api-interface
It is possible to specify that some method will error if it is provided, but no converse option to error if it is not provided.
I've also read SLEP006 and the milestone issue #22893 and could not find a mention of this.
I am okay with this if that's the case but I would rather it be explicitly stated somewhere in the linked docs that this is not a feature that's supported.
Reason for clarification:
GroupKFold
with aValueError
, i.e.groups=
was never specified. I would have expected this to raise some specificXXXMetaDataError
, similar toUnsetMetadataPassedError
for when some metadata is passed which is not required.Naturally, I wanted to test if this works for an estimator too.
Suggest a potential alternative/fix
If there is no way to specify that some metadata is required, then to explicitly document this.
I would propose the following last bullet point to the documentation:
The text was updated successfully, but these errors were encountered: