Repository navigation
DOC Add auto-requesting metadata section to user guide - #35019
Conversation
mhmd-81
left a comment
There was a problem hiding this comment.
Could we keep the terminology consistent here and use “metadata routing” instead of “metadata” where appropriate? For example, “whether to use the metadata within the different consumers” could perhaps be clarified as “whether to route the metadata to the different consumers.”
ogrisel
left a comment
There was a problem hiding this comment.
Besides the following detail, LGTM.
Note that this doc will have to be reshuffled/updated/simplified if/when we decide to set enable_metadata_auto_requests=False by default in the future.
Thanks @mhmd-81, but there is a difference between using metadata in a method and using metadata routing as a (more wholistic) tool, and I had meant these two different things there. |
StefanieSenger
left a comment
There was a problem hiding this comment.
Thanks a lot for the reviews! :)
|
@adrinjalali, do you mind having a look? |
| Auto-requests are declared for specific metadata such as ``sample_weight``, ``X_val``, | ||
| ``y_val`` and ``sample_weight_val``. Once a metadata is supported, methods that take | ||
| that argument are expected to auto-request it. (``groups`` in ``Group*Fold`` is not an | ||
| auto-request and is requested by default whether auto-requests are switched on or off.) |
There was a problem hiding this comment.
and that's because it's not that it "can" consume it, rather, it "requires" it to work.
There was a problem hiding this comment.
Is there anything you'd like me to change here, @adrinjalali?
antoinebaker
left a comment
There was a problem hiding this comment.
Thanks @StefanieSenger, LGTM !
I guess the Metadata Routing User guide will be simplified greatly once the auto request policy is enabled by default, something along the lines of
"Everything should work out of the box for common metadata like sample_weight, groups etc. If you're a developer and want to support some metadata, see the auto request guide. If you're a user and want to opt out or alias some metadata, here's how to do it with explicit set_{method}_request examples."
Yes, that will be a very satisfying PR. |
Co-authored-by: Adrin Jalali <[email protected]>
|
I think this one is good to merge. |
Reference Issues/PRs
towards #34901
What does this implement/fix? Explain your changes.
This is a follow up to #31413 and adds documentation on how to use auto-requests into the user docs.
AI usage disclosure
I used AI assistance for: