Get a Metadata{Router, Request} instance from the given object.
This function returns a MetadataRouter or a MetadataRequest from the given input.
This function always returns a copy or an instance constructed from the input, such that changing the output of this function will not change the original object.
Added in version 1.3.
get_metadata_routing method, return a copyof the output of that method.
MetadataRequest or a MetadataRouter, return a copy of that.
MetadataRequest
otherwise.
A MetadataRequest or a MetadataRouting taken or created from the given object.
© 2007–2025 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.6/modules/generated/sklearn.utils.metadata_routing.get_routing_for_object.html