You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FAQ/SUMM Design: What is the policy for estimation failures running many cases? #3520
When we run many estimation problems in a loop, then it is possible that an estimation case does not work. In the loop we often don't want to stop if an exception or estimation failure occurs.
What is the general policy or what are the recommendations for this case?
the location where something can go wrong
problems with the data like missing values or singular exog, or possibly also dtype issues
optimization: convergence failure
missing hessian, hessian not positive (semi-) definite
other missing results (not clear if there are any)
Currently we don't have a general policy and stable API for many cases. Decisions are mostly case specific.
We refactored exceptions and warnings to be more specific, but unit test coverage for those is relatively low, and not guarantee yet that the exception or warning classes that are raised at specific failures are part of the stable API. Some should be.
How do we detect a failure:
exceptions
flags, attributes (with or without warning): e.g. coverged boolean, rank of exog or cov_params
result not available (with or without warning): e.g. properties that are None or np.nan
How do we work around a failure:
up to user: e.g. problems with data, insufficient data cleaning, better start_params
try harder to avoid exceptions, e.g. should we switch to OPG if hessian is not invertible, or should we regularize (pinv) as in linear regression models, more improvements to optimization like endogenous switching of algorithm
catch exceptions: a loop where we already to this is in the lag-search in ARIMA type models.
Can we identify the source of the failure:
Are the messages from warnings or exceptions informative enough?
diagnostics after failures ?
general diagnostics for "validity", e.g. stricter convergence check including zero gradient, multicollinearity diagnostics, special case in tsa for stationarity assumption (e.g. exceptions or convergence failures in ARMA)
see sanity checks, possible transformations of data, general diagnostic checks.
We would need more SMEPs, largely written ex-post to summarize some overall design decisions.
Currently, it has all been spread over issues, and the SMEPs in the wiki are ignored and outdated.
Activity
josef-pkt commentedon Feb 28, 2017
We would need more SMEPs, largely written ex-post to summarize some overall design decisions.
Currently, it has all been spread over issues, and the SMEPs in the wiki are ignored and outdated.
josef-pkt commentedon Feb 28, 2017
issue triggered by http://stackoverflow.com/questions/42511060/python-using-runtimewarning-to-adapt-my-code-to-unexpected-issues