sklearn.utils.metadata_routing.MetadataRequest

sklearn.utils.metadata_routing.MetadataRequest(owner)[source]

Contains the metadata request info of a consumer.

Instances of MethodMetadataRequest are used in this class for each available method under metadatarequest.{method}.

Consumer-only classes such as simple estimators return a serialized version of this class as the output of get_metadata_routing().

New in version 1.3.

Parameters:
ownerstr

The name of the object to which these requests belong.