ConvergenceWarning#
- exception superglm.ConvergenceWarning#
Bases:
UserWarningA fit stopped before its convergence test passed.
The fitted model is still returned.
SuperGLM.fit_remlwarns when smoothing-parameter selection stops unconverged, or its final coefficient fit does, and so doestimate_pandestimate_thetawithfit_mode="reml"for the fit they publish; the summary’sConvergedrow andreml_diagnostics()["converged"]then readFalse.SuperLSS.fit_remlwarns when its coefficient or smoothing loop stops unconverged;result_.convergedthen readsFalseand the summary’snotecolumn says so (SuperLSS.fit, with fixed smoothing, reports it there without a warning).SuperLSSalso warns, and keeps the text inresult_.warnings, on a fit that may itself have converged: when its final curvature is the nearest semidefinite matrix, or is Fisher information forNegativeBinomialLS(other families’ Fisher fallback is silent, as in 0.40), when its null model did not converge, when an inner fit stops withno_ascent_direction, and when aNegativeBinomialLSfit has rows whose size is at the Poisson limit and its final curvature is singular in a size direction, whatever the cause (the message gives the row count). The message names the reason and what to change. Silence it withwarnings.filterwarningsonce the reason is understood.