Toggle Menu
Prev Up Next

scikit-learn 1.3.2
Other versions

Please cite us if you use the software.

# `sklearn.utils.metadata_routing`.MetadataRouter

sklearn.utils.metadata_routing.MetadataRouter(owner)

  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:
    owner str

      The name of the object to which these requests belong.

## Examples using `sklearn.utils.metadata_routing.MetadataRouter`

Metadata Routing

Metadata Routing