Module Expr Str ImportFrom alias alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareLt NameLoad Num body Assign NameStore NameLoad orelse Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num If CompareLt NameLoad Num body Assign NameStore BinOpPow Num BinOpAdd NameLoad BinOpDiv BinOpMult BinOpSub NameLoad NameLoad BinOpSub NameLoad Num Num orelse If CompareLt NameLoad Num body Assign NameStore BinOpPow Num BinOpAdd NameLoad BinOpDiv BinOpMult BinOpSub NameLoad NameLoad BinOpSub NameLoad Num Num orelse If CompareLt NameLoad Num body Assign NameStore BinOpPow Num BinOpAdd NameLoad BinOpDiv BinOpMult BinOpSub NameLoad NameLoad BinOpSub NameLoad Num Num orelse Assign NameStore BinOpAdd Num BinOpPow BinOpSub NameLoad Num Num Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad Call AttributeLoad NameLoad attr Num BinOpSub NameLoad Num NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Num orelse Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad keyword Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Import alias Expr Call AttributeLoad NameLoad attr Str NameLoad Return BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Num AttributeLoad NameLoad attr If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Return BinOpAdd Call AttributeLoad NameLoad attr NameLoad keyword Num AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return AttributeLoad Call AttributeLoad NameLoad attr ListComp BinOpAdd Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign AttributeStore NameLoad attr BoolOpOr NameLoad ListComp Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad comprehension NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call AttributeLoad BinOpMult NameLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num body Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd BinOpSub BinOpSub NameLoad NameLoad NameLoad NameLoad attr If NameLoad body Print TupleLoad NameLoad NameLoad NameLoad NameLoad Raise Call NameLoad Str Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr BinOpAdd BinOpSub NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad BinOpDiv UnaryOpUSub Call AttributeLoad BinOpMult NameLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Print AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr AugAssignAdd NameStore BinOpSub NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str AugAssignAdd AttributeStore NameLoad attr Num If NameLoad body Print TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Print TupleLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad BinOpMult BinOpPow BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr attr If CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If CompareLt Call AttributeLoad NameLoad attr BinOpDiv BinOpSub AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Return NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpSub SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Call AttributeLoad Call AttributeLoad NameLoad attr ListComp Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr comprehension NameStore Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpDiv Call AttributeLoad BinOpPow BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore BinOpDiv Call AttributeLoad BinOpMult NameLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num AttributeLoad NameLoad attr For NameStore Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr BinOpSub BinOpSub NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Assign SubscriptStore NameLoad Index NameLoad BinOpDiv Call AttributeLoad BinOpMult NameLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AugAssignSub NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad While Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Assert CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr body Print Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Print Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body Print TupleLoad Str Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr BinOpSub NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad AttributeLoad AttributeLoad NameLoad attr attr Return BinOpDiv Call AttributeLoad BinOpDiv Call AttributeLoad NameLoad attr NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMult Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad While Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Import alias Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Generalized additive models



Requirements for smoothers
--------------------------

smooth(y, weights=xxx) : ? no return ? alias for fit
predict(x=None) : smoothed values, fittedvalues or for new exog
df_fit() : degress of freedom of fit ?


Notes
-----
- using PolySmoother works for AdditiveModel, and GAM with Poisson and Binomial
- testfailure with Gamma, no other families tested
- there is still an indeterminacy in the split up of the constant across
  components (smoothers) and alpha, sum, i.e. constant, looks good.
  - role of offset, that I haven't tried to figure out yet

Refactoring
-----------
currently result is attached to model instead of other way around
split up Result in class for AdditiveModel and for GAM,
subclass GLMResults, needs verification that result statistics are appropriate
how much inheritance, double inheritance?
renamings and cleanup
interface to other smoothers, scipy splines

basic unittests as support for refactoring exist, but we should have a test
case for gamma and the others. Advantage of PolySmoother is that we can
benchmark against the parametric GLM results.

 statsmodels.compat.python next range N/A numpy np statsmodels.genmod families statsmodels.sandbox.nonparametric.smoothers PolySmoother statsmodels.genmod.generalized_linear_model GLM statsmodels.tools.sm_exceptions IterationLimitWarning iteration_limit_doc N/A warnings N/A DEBUG False default_smoother N/A N/A x s_arg N/A None N/A N/A N/A _x N/A N/A np sort x N/A n N/A N/A x shape N/A 0 N/A N/A n 500 N/A N/A nknots n N/A N/A a1 N/A N/A N/A np log 50 N/A N/A np log 2 N/A a2 N/A N/A N/A np log 100 N/A N/A np log 2 N/A a3 N/A N/A N/A np log 140 N/A N/A np log 2 N/A a4 N/A N/A N/A np log 200 N/A N/A np log 2 N/A N/A n 200 N/A N/A nknots N/A 2 N/A a1 N/A N/A N/A a2 a1 N/A n 50 150.0 N/A N/A N/A n 800 N/A N/A nknots N/A 2 N/A a2 N/A N/A N/A a3 a2 N/A n 200 600.0 N/A N/A N/A n 3200 N/A N/A nknots N/A 2 N/A a3 N/A N/A N/A a4 a3 N/A n 800 2400.0 N/A N/A nknots N/A 200 N/A N/A n 3200.0 0.2 N/A knots N/A _x N/A N/A N/A N/A N/A np linspace 0 N/A n 1 nknots astype N/A np int32 N/A N/A s_arg None N/A N/A order 3 N/A N/A order s_arg N/A s N/A PolySmoother order x N/A N/A x copy N/A s N/A Offset N/A object N/A __init__ N/A N/A self fn offset N/A N/A N/A N/A self fn fn N/A N/A self offset offset N/A __call__ N/A N/A self N/A args kw N/A N/A N/A N/A N/A self fn args kw N/A self offset N/A N/A Results N/A object N/A __init__ N/A N/A self Y alpha exog smoothers family offset N/A N/A N/A N/A N/A self nobs N/A self k_vars N/A exog shape N/A N/A self Y Y N/A N/A self alpha alpha N/A N/A self smoothers smoothers N/A N/A self offset offset N/A N/A self family family N/A N/A self exog exog N/A N/A self offset offset N/A N/A self mu N/A N/A self linkinversepredict exog N/A __call__ N/A N/A self exog N/A N/A N/A expected value ? check new GLM, same as mu for given exog
        maybe remove this
         N/A N/A N/A self linkinversepredict exog N/A linkinversepredict N/A N/A self exog N/A N/A N/A expected value ? check new GLM, same as mu for given exog
         N/A N/A N/A N/A N/A self family link inverse N/A N/A self predict exog N/A predict N/A N/A self exog N/A N/A N/A predict response, sum of smoothed components
        TODO: What's this in the case of GLM, corresponds to X*beta ?
         N/A exog_smoothed N/A N/A self smoothed exog N/A N/A N/A N/A exog_smoothed shape N/A 0 N/A self k_vars N/A N/A warnings N/A N/A N/A warnings warn old orientation, colvars, will go away FutureWarning N/A N/A N/A N/A np sum N/A N/A self smoothed exog axis 0 N/A self alpha N/A N/A N/A N/A exog_smoothed shape N/A 1 N/A self k_vars N/A N/A N/A N/A N/A np sum exog_smoothed axis 1 N/A self alpha N/A N/A N/A ValueError shape mismatch in predict N/A smoothed N/A N/A self exog N/A N/A N/A get smoothed prediction for each component

         N/A N/A N/A N/A np array N/A N/A N/A N/A N/A N/A self smoothers N/A i predict N/A exog N/A N/A N/A i N/A N/A self offset N/A i N/A i N/A range N/A N/A exog shape N/A 1 T N/A smoothed_demeaned N/A N/A self exog N/A N/A N/A components N/A N/A self smoothed exog N/A means N/A N/A components mean 0 N/A constant N/A N/A N/A means sum N/A self alpha N/A components_demeaned N/A components means N/A N/A components_demeaned constant N/A N/A AdditiveModel N/A object N/A N/A additive model with non-parametric, smoothed components

    Parameters
    ----------
    exog : ndarray
    smoothers : None or list of smoother instances
        smoother instances not yet checked
    weights : None or ndarray
    family : None or family instance
        I think only used because of shared results with GAM and subclassing.
        If None, then Gaussian is used.
     __init__ N/A N/A self exog smoothers weights family N/A None None None N/A N/A N/A self exog exog N/A N/A N/A weights None N/A N/A N/A self weights weights N/A N/A N/A self weights N/A N/A np ones N/A N/A N/A self exog shape N/A 0 N/A N/A self smoothers N/A smoothers N/A N/A default_smoother N/A exog N/A N/A N/A i N/A i N/A range N/A N/A exog shape N/A 1 N/A i N/A range N/A N/A exog shape N/A 1 N/A N/A N/A N/A N/A self smoothers N/A i df 10 N/A N/A family None N/A N/A N/A self family N/A N/A families Gaussian N/A N/A N/A self family family N/A _iter__ N/A N/A self N/A N/A N/A initialize iteration ?, should be removed

         N/A N/A self iter 0 N/A N/A self dev N/A np inf N/A self N/A next N/A N/A self N/A N/A N/A internal calculation for one fit iteration

        BUG: I think this does not improve, what is supposed to improve
            offset doesn't seem to be used, neither an old alpha
            The smoothers keep coef/params from previous iteration
         N/A _results N/A self results N/A Y N/A N/A self results Y N/A mu N/A N/A _results predict N/A self exog N/A offset N/A N/A np zeros N/A N/A N/A self exog shape N/A 1 N/A np float64 N/A alpha N/A N/A N/A N/A Y N/A self weights sum N/A N/A N/A self weights sum N/A i N/A range N/A N/A N/A self exog shape N/A 1 N/A N/A tmp N/A N/A N/A N/A self smoothers N/A i predict N/A bad N/A N/A N/A N/A np isnan N/A N/A N/A Y alpha mu tmp any N/A bad N/A N/A N/A Y alpha mu tmp N/A N/A ValueError nan encountered N/A N/A N/A N/A N/A self smoothers N/A i smooth N/A N/A Y mu tmp weights N/A self weights N/A tmp2 N/A N/A N/A N/A self smoothers N/A i predict N/A N/A N/A N/A self results offset N/A i N/A N/A N/A N/A N/A tmp2 N/A self weights sum N/A N/A N/A self weights sum N/A DEBUG N/A N/A N/A N/A N/A self smoothers N/A i params N/A mu N/A tmp2 tmp N/A offset N/A N/A self results offset N/A N/A Results Y alpha N/A self exog N/A self smoothers N/A self family offset N/A cont N/A N/A self N/A N/A N/A condition to continue iteration loop

        Parameters
        ----------
        tol

        Returns
        -------
        cont : bool
            If true, then iteration should be continued.

         N/A N/A self iter 1 N/A DEBUG N/A N/A N/A N/A self iter N/A N/A N/A self results Y shape N/A N/A N/A N/A N/A N/A self results predict N/A self exog shape N/A N/A self weights shape N/A curdev N/A N/A N/A N/A N/A N/A N/A self results Y N/A N/A N/A self results predict N/A self exog 2 N/A self weights sum N/A N/A N/A self iter N/A self maxiter N/A N/A False N/A N/A N/A N/A np fabs N/A N/A N/A self dev curdev curdev N/A self rtol N/A N/A N/A self dev curdev N/A False N/A N/A self dev curdev N/A True N/A df_resid N/A N/A self N/A N/A N/A degrees of freedom of residuals, ddof is sum of all smoothers df
         N/A N/A N/A N/A N/A N/A self results Y shape N/A 0 N/A N/A N/A N/A np array N/A N/A N/A N/A N/A self smoothers N/A i df_fit N/A i N/A range N/A N/A N/A self exog shape N/A 1 sum N/A estimate_scale N/A N/A self N/A N/A N/A estimate standard deviation of residuals
         N/A N/A N/A N/A N/A N/A N/A N/A self results Y N/A N/A self results N/A self exog 2 sum N/A N/A self df_resid N/A fit N/A N/A self Y rtol maxiter N/A 1e-06 30 N/A N/A fit the model to a given endogenous variable Y

        This needs to change for consistency with statsmodels

         N/A N/A self rtol rtol N/A N/A self maxiter maxiter N/A N/A N/A self _iter__ N/A mu 0 N/A alpha N/A N/A N/A N/A Y N/A self weights sum N/A N/A N/A self weights sum N/A offset N/A N/A np zeros N/A N/A N/A self exog shape N/A 1 N/A np float64 N/A i N/A range N/A N/A N/A self exog shape N/A 1 N/A N/A N/A N/A N/A N/A self smoothers N/A i smooth N/A N/A Y alpha mu weights N/A self weights N/A tmp N/A N/A N/A N/A self smoothers N/A i predict N/A N/A offset N/A i N/A N/A N/A N/A tmp N/A self weights sum N/A N/A N/A self weights sum N/A tmp N/A N/A tmp sum N/A mu tmp N/A N/A self results N/A Results Y alpha N/A self exog N/A self smoothers N/A self family offset N/A N/A N/A self cont N/A N/A N/A self results N/A N/A self next N/A N/A N/A self iter N/A self maxiter N/A N/A N/A N/A warnings warn iteration_limit_doc IterationLimitWarning N/A N/A self results N/A N/A Model N/A GLM AdditiveModel N/A __init__ N/A N/A self endog exog smoothers family N/A None N/A N/A families Gaussian N/A N/A N/A N/A AdditiveModel __init__ self exog smoothers smoothers family family N/A N/A N/A GLM __init__ self endog exog family family N/A N/A N/A self family family N/A next N/A N/A self N/A N/A N/A _results N/A self results N/A Y N/A _results Y N/A N/A N/A N/A N/A np isnan N/A self weights all N/A N/A nanweights1 N/A N/A _results mu N/A N/A N/A N/A self family link inverse N/A N/A _results predict N/A self exog N/A weights N/A N/A N/A self family weights N/A _results mu N/A N/A N/A N/A N/A np isnan weights all N/A N/A N/A self weights weights N/A nanweights2 N/A N/A self weights weights N/A DEBUG N/A N/A N/A deriv isnan N/A N/A N/A N/A np isnan N/A N/A N/A N/A self family link deriv N/A _results mu any N/A Z N/A N/A N/A _results predict N/A self exog N/A N/A N/A N/A N/A self family link deriv N/A _results mu N/A Y N/A _results mu N/A m N/A AdditiveModel N/A self exog smoothers N/A self smoothers weights N/A self weights family N/A self family N/A _results N/A N/A m fit Z N/A N/A N/A N/A self history append N/A Z N/A N/A _results predict N/A self exog N/A N/A _results Y Y N/A N/A _results mu N/A N/A N/A N/A self family link inverse N/A N/A _results predict N/A self exog N/A N/A self iter 1 N/A N/A self results _results N/A _results N/A estimate_scale N/A N/A self Y N/A None N/A N/A 
        Return Pearson's X^2 estimate of scale.
         N/A N/A Y None N/A N/A Y N/A self Y N/A resid N/A Y N/A N/A self results mu N/A N/A N/A N/A N/A N/A N/A np power resid 2 N/A N/A N/A self family variance N/A N/A self results mu sum N/A self df_resid N/A fit N/A N/A self Y rtol maxiter N/A 1e-06 30 N/A N/A N/A self rtol rtol N/A N/A self maxiter maxiter N/A N/A self Y N/A N/A np asarray Y N/A np float64 N/A N/A self history N/A N/A N/A N/A self _iter__ N/A alpha N/A N/A N/A self Y mean N/A mu0 N/A N/A N/A self family starting_mu Y N/A Z N/A N/A N/A N/A self family link alpha N/A N/A N/A N/A N/A self family link deriv alpha N/A Y mu0 N/A m N/A AdditiveModel N/A self exog smoothers N/A self smoothers family N/A self family N/A N/A self results N/A N/A m fit Z N/A N/A N/A self results mu N/A N/A N/A N/A self family link inverse N/A N/A N/A self results predict N/A self exog N/A N/A N/A self results Y Y N/A N/A N/A self cont N/A N/A N/A self results N/A N/A self next N/A N/A self scale N/A N/A self results scale N/A N/A self estimate_scale N/A N/A N/A self iter N/A self maxiter N/A N/A warnings N/A N/A N/A warnings warn iteration_limit_doc IterationLimitWarning N/A N/A self results N/A N/A