EconML
EconML copied to clipboard
More transparent error messages when calling effect functions on un-fitted estimators
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()