MethodMapping#
- classsklearn.utils.metadata_routing.MethodMapping[source]#
Stores the mapping between caller and callee methods for arouter.
This class is primarily used in a
get_metadata_routing()of a routerobject when defining the mapping between the router’s methods and a sub-object (asub-estimator or a scorer).Iterating through an instance of this class yields
MethodPair(caller,callee)instances.Added in version 1.3.
Gallery examples#
On this page
