MethodMapping
- class sklearn.utils.metadata_routing.MethodMapping
Stores the mapping between
callerandcalleemethods for a router.This class is primarily used in a
get_metadata_routing()of a router object when defining the mapping between the router’s methods and a sub-object (a sub-estimator or a scorer).Iterating through an instance of this class yields
MethodPair(caller, callee)instances.Read more on developing custom estimators that can route metadata in the .