EconML icon indicating copy to clipboard operation
EconML copied to clipboard

More transparent error messages when calling effect functions on un-fitted estimators

Open fverac opened this issue 3 years ago • 0 comments

Currently we throw somewhat obscure error messages when users try to call something like est.effect() on an estimator that hasn't been fit yet.

May be better to have a clearer error message.

Repro:

from econml.dml import LinearDML
LinearDML().effect()
image

fverac avatar Oct 10 '22 16:10 fverac