doubleml.utils.DMLDummyClassifier#
- class doubleml.utils.DMLDummyClassifier#
A dummy classifier that raises an AttributeError when attempting to access its fit, predict, set_params, or predict_proba methods.
Methods
fit
()Raises AttributeError: "Accessed fit method of DummyClassifier!"
Get metadata routing of this object.
get_params
([deep])Get parameters for this estimator.
predict
()Raises AttributeError: "Accessed predict method of DummyClassifier!"
predict_proba
(**kwargs)Raises AttributeError: "Accessed predict_proba method of DummyClassifier!"
Raises AttributeError: "Accessed set_params method of DummyClassifier!"
- DMLDummyClassifier.fit()#
Raises AttributeError: “Accessed fit method of DummyClassifier!”
- DMLDummyClassifier.get_metadata_routing()#
Get metadata routing of this object.
Please check User Guide on how the routing mechanism works.
- Returns:
routing – A
MetadataRequest
encapsulating routing information.- Return type:
MetadataRequest
- DMLDummyClassifier.get_params(deep=True)#
Get parameters for this estimator.
- DMLDummyClassifier.predict()#
Raises AttributeError: “Accessed predict method of DummyClassifier!”
- DMLDummyClassifier.predict_proba(**kwargs)#
Raises AttributeError: “Accessed predict_proba method of DummyClassifier!”
- DMLDummyClassifier.set_params()#
Raises AttributeError: “Accessed set_params method of DummyClassifier!”