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)}, where method_mapping is an instance of MethodMapping and routing_info is either a MetadataRequest or a MetadataRouter 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

Metadata Routing