doubleml.utils.DMLDummyRegressor#

class doubleml.utils.DMLDummyRegressor#

A dummy regressor that raises an AttributeError when attempting to access its fit, predict, or set_params methods.

Methods

fit()

Raises AttributeError: "Accessed fit method of DummyRegressor!"

get_metadata_routing()

Get metadata routing of this object.

get_params([deep])

Get parameters for this estimator.

predict()

Raises AttributeError: "Accessed predict method of DummyRegressor!"

set_params()

Raises AttributeError: "Accessed set_params method of DummyRegressor!"

DMLDummyRegressor.fit()#

Raises AttributeError: “Accessed fit method of DummyRegressor!”

DMLDummyRegressor.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

DMLDummyRegressor.get_params(deep=True)#

Get parameters for this estimator.

Parameters:

deep (bool, default=True) – If True, will return the parameters for this estimator and contained subobjects that are estimators.

Returns:

params – Parameter names mapped to their values.

Return type:

dict

DMLDummyRegressor.predict()#

Raises AttributeError: “Accessed predict method of DummyRegressor!”

DMLDummyRegressor.set_params()#

Raises AttributeError: “Accessed set_params method of DummyRegressor!”