sklearn.utils.metadata_routing
.MetadataRouter¶
- sklearn.utils.metadata_routing.MetadataRouter(owner)[source]¶
Stores and handles metadata routing for a router object.
This class is used by router objects to store and handle metadata routing. Routing information is stored as a dictionary of the form
{"object_name": RouteMappingPair(method_mapping, routing_info)}
, wheremethod_mapping
is an instance ofMethodMapping
androuting_info
is either aMetadataRequest
or aMetadataRouter
instance.New in version 1.3.
- Parameters:
- ownerstr
The name of the object to which these requests belong.
Examples using sklearn.utils.metadata_routing.MetadataRouter
¶
Metadata Routing