MCPcopy
hub / github.com/scikit-learn/scikit-learn / UnsetMetadataPassedError

Class UnsetMetadataPassedError

sklearn/exceptions.py:21–43  ·  view source on GitHub ↗

Exception class to raise if a metadata is passed which is not explicitly \ requested (metadata=True) or not requested (metadata=False). .. versionadded:: 1.3 Parameters ---------- message : str The message unrequested_params : dict A dictionary of param

Source from the content-addressed store, hash-verified

19
20
21class UnsetMetadataPassedError(ValueError):
22 """Exception class to raise if a metadata is passed which is not explicitly \
23 requested (metadata=True) or not requested (metadata=False).
24
25 .. versionadded:: 1.3
26
27 Parameters
28 ----------
29 message : str
30 The message
31
32 unrequested_params : dict
33 A dictionary of parameters and their values which are provided but not
34 requested.
35
36 routed_params : dict
37 A dictionary of routed parameters.
38 """
39
40 def __init__(self, *, message, unrequested_params, routed_params):
41 super().__init__(message)
42 self.unrequested_params = unrequested_params
43 self.routed_params = routed_params
44
45
46class NotFittedError(ValueError, AttributeError):

Callers 6

cross_validateFunction · 0.90
cross_val_predictFunction · 0.90
permutation_test_scoreFunction · 0.90
learning_curveFunction · 0.90
validation_curveFunction · 0.90
_route_paramsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…