dswah / pyGAM

[HELP REQUESTED] Generalized Additive Models in Python
https://pygam.readthedocs.io
Apache License 2.0
857 stars 157 forks source link

AttributeError: 'NoneType' object has no attribute 'get_params' #273

Open michaeljfazio opened 4 years ago

michaeljfazio commented 4 years ago

I'm attempting to run a LogisticGAM for multiple data sets in a loop as such:

for key, vessel_df in subset_df.groupby(level=0):
    vessel_df = vessel_df.copy()
    X = vessel_df[['latitude', 'longitude', 'day']].values
    y = vessel_df['seen'].values
    gam = LogisticGAM(te(0,1) + f(2)).gridsearch(X,y)
    ...

My X values are in the form:

215057000
[[35.9498     14.8061      4.        ]
 [35.9498     14.8061      4.        ]
 [35.9501     14.8062      4.        ]
 ...
 [35.9493     14.80875     1.        ]
 [35.94968889 14.80867778  1.        ]
 [35.94997273 14.80865455  1.        ]]

and my y values are in the form:

[ True False  True False False False False  True False  True  True  True
  True  True  True  True  True  True  True False False  True False  True
  True  True  True  True  True  True  True  True  True  True  True  True
  True  True  True  True  True  True  True  True  True  True  True False
 False False False False False ...]

Most datasets process without issue. I hit one dataset in particular however which results in the following error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-252-3a4de86de893> in <module>()
     15     X = vessel_df[['latitude', 'longitude', 'day']].values
     16     y = vessel_df['seen'].values
---> 17     gam = LogisticGAM(te(0,1) + f(2)).gridsearch(X,y, keep_best=True, progress=False)

~/anaconda3/envs/python3/lib/python3.6/site-packages/pygam/pygam.py in gridsearch(self, X, y, weights, return_scores, keep_best, objective, progress, **param_grids)
   1921             self.set_params(deep=True,
   1922                             force=True,
-> 1923                             **best_model.get_params(deep=True))
   1924         if return_scores:
   1925             return OrderedDict(zip(models, scores))

AttributeError: 'NoneType' object has no attribute 'get_params'

It appears that best_model is under some circumstances None. Thus, this operation throws an unrecoverable Error and bails out of processing the rest of the data in my data set.

I can prevent the Error from happening by using:

gam = LogisticGAM(te(0,1) + f(2)).gridsearch(X,y, keep_best=False)

Though I'm not entirely sure what effect that has on the gridsearch operation itself.

I believe the offending line of code is here:

https://github.com/dswah/pyGAM/blob/29425798e13651f03c1fd3cc1096071cd752403a/pygam/pygam.py#L1946

michaeljfazio commented 4 years ago

A more general question for @dswah is if this project is still being actively developed by yourself? It's hard to tell what could be human errors vs potential bugs 🤦

shyamcody commented 4 years ago

Can you provide a small sample from where the error can be reproduced? Currently, I can not reproduce this error. Pygam == 0.8.0 numpy == 1.18.1 python == 3.6.9 scikit-learn == 0.22.1 scipy == 1.4.1

alessioarena commented 3 years ago

I had a similar issue, trying to fit a GammaGAM using gridsearch. Turned out few of the models did not converge actually converge, but all of the ones that did converge had score=np.inf.

I am reporting one of the models, but my very limited knowledge of this type of statistics tells me that is simply not the right model to fit.

Maybe would be worth capturing this case of all np.inf scores and provide an informative message to the user?

 'm_features': 14,
 'edof_per_coef': array([9.93304195e-01, 9.73450354e-01, 8.37501105e-01, 1.24155502e-02,
        9.73335983e-01, 6.62577638e-01, 4.62581498e-01, 1.79131924e-02,
        4.52513971e-02, 3.17708351e-01, 1.26445528e-02, 2.84219452e-01,
        9.68476716e-01, 2.95486749e-02, 3.05148555e-01, 5.29838552e-01,
        1.91864774e-01, 2.17500491e-03, 1.44377102e-02, 8.09849215e-01,
        9.50971019e-03, 9.23589282e-01, 7.37266469e-03, 8.70123566e-01,
        3.30357987e-03, 3.52345050e-01, 4.12186917e-03, 2.08808998e-02,
        9.54180736e-01, 1.97330286e-22]),
 'edof': 11.589669830831653,
 'scale': 3.898812179664143,
 'cov': array([[ 1.42646158e-02, -1.42646158e-02, -2.53731824e-04,
          2.53731823e-04, -1.28774656e-02, -1.50113151e-02,
         -1.10983913e-02,  8.05036455e-03,  3.02621380e-02,
         -1.99464587e-05,  1.99464587e-05,  4.07035489e-04,
          6.72055709e-03,  1.07083701e-06, -6.42259225e-03,
         -3.27883901e-03, -1.34911802e-04,  3.00900590e-03,
          6.15286244e-03,  8.80510639e-06, -8.80510690e-06,
         -1.33839647e-04,  1.33839646e-04, -8.56231710e-04,
          8.56231081e-04, -1.80947749e-04,  1.80947749e-04,
          1.85872991e-06,  4.30010067e-04, -6.74666373e-04],
        [-1.42646158e-02,  1.42646158e-02,  2.53731783e-04,
         -2.53731782e-04,  1.28774647e-02,  1.50113125e-02,
          1.10983889e-02, -8.05036289e-03, -3.02621315e-02,
          1.99464594e-05, -1.99464593e-05, -4.07035524e-04,
         -6.72055735e-03, -1.07083705e-06,  6.42259263e-03,
          3.27883942e-03,  1.34912235e-04, -3.00900544e-03,
         -6.15286196e-03, -8.80510903e-06,  8.80510954e-06,
          1.33839641e-04, -1.33839640e-04,  8.56231681e-04,
         -8.56231052e-04,  1.80947744e-04, -1.80947744e-04,
         -1.85873085e-06, -4.30010072e-04,  6.74668541e-04],
        [-2.53731824e-04,  2.53731783e-04,  1.57289009e-02,
         -1.57289009e-02, -1.21313074e-02,  8.21744013e-05,
          6.02326830e-03,  2.44911775e-04, -7.34913140e-03,
         -1.30589153e-05,  1.30589151e-05,  1.88143362e-04,
          4.18431529e-03,  4.55051840e-07, -6.55615389e-03,
         -4.59019269e-03, -2.62396186e-03, -6.60817057e-04,
          1.30120919e-03,  1.31208550e-04, -1.31208560e-04,
         -1.50709367e-05,  1.50709163e-05, -5.70938238e-04,
          5.70926010e-04,  1.86561144e-05, -1.86561161e-05,
          1.07570757e-05,  6.75710489e-05, -1.31300918e-02],
        [ 2.53731823e-04, -2.53731782e-04, -1.57289009e-02,
          1.57289009e-02,  1.21313072e-02, -8.21750888e-05,
         -6.02326895e-03, -2.44911334e-04,  7.34913311e-03,
          1.30589155e-05, -1.30589152e-05, -1.88143372e-04,
         -4.18431536e-03, -4.55051850e-07,  6.55615399e-03,
          4.59019280e-03,  2.62396198e-03,  6.60817179e-04,
         -1.30120907e-03, -1.31208551e-04,  1.31208560e-04,
          1.50709353e-05, -1.50709149e-05,  5.70938231e-04,
         -5.70926002e-04, -1.86561155e-05,  1.86561172e-05,
         -1.07570760e-05, -6.75710502e-05,  1.31300923e-02],
        [-1.28774656e-02,  1.28774647e-02, -1.21313074e-02,
          1.21313072e-02,  1.80681260e+00,  1.06219568e-01,
          4.49260450e-01, -3.79238991e-01, -2.27946303e+00,
         -3.22368131e-05,  3.22368069e-05, -9.59366771e-03,
          1.28761693e-02, -1.57402027e-04, -3.56553013e-02,
         -4.72091778e-02, -5.88984775e-02, -7.11357961e-02,
         -8.35106465e-02,  3.18258708e-03, -3.18258730e-03,
         -9.49758892e-03,  9.49758846e-03, -3.83491705e-02,
          3.83488945e-02, -2.98712432e-03,  2.98712428e-03,
          1.17404967e-04, -1.73425692e-03, -2.96409537e-01],
        [-1.50113151e-02,  1.50113125e-02,  8.21744013e-05,
         -8.21750888e-05,  1.06219568e-01,  1.28321234e+00,
          1.00565668e+00, -7.36541883e-01, -2.48210508e+00,
          5.22454387e-05, -5.22454559e-05, -2.28021954e-03,
         -6.44170895e-02,  8.87772450e-05, -1.24404247e-01,
         -1.44609718e-01, -1.64793666e-01, -1.84858548e-01,
         -2.04890916e-01, -5.60379132e-04,  5.60378519e-04,
         -1.74259702e-03,  1.74259575e-03,  1.55364127e-02,
         -1.55371797e-02,  7.74301198e-05, -7.74302254e-05,
         -4.28395323e-05, -9.24522455e-04, -8.23558421e-01],
        [-1.10983913e-02,  1.10983889e-02,  6.02326830e-03,
         -6.02326895e-03,  4.49260450e-01,  1.00565668e+00,
          1.24058813e+00, -5.52675458e-01, -2.91484892e+00,
          1.93162101e-04, -1.93162117e-04, -4.14278841e-03,
         -8.72011295e-02, -1.42758950e-05, -1.21234361e-01,
         -1.37730399e-01, -1.54278090e-01, -1.71003673e-01,
         -1.87771337e-01, -2.84554766e-03,  2.84554708e-03,
          2.61616790e-03, -2.61616910e-03,  3.61974284e-02,
         -3.61981475e-02, -1.15406817e-03,  1.15406807e-03,
          7.62357293e-05, -6.21337714e-04, -7.72019227e-01],
        [ 8.05036455e-03, -8.05036289e-03,  2.44911775e-04,
         -2.44911334e-04, -3.79238991e-01, -7.36541883e-01,
         -5.52675458e-01,  5.10562103e-01,  1.68653348e+00,
          9.47453176e-05, -9.47453065e-05, -1.37573001e-03,
         -1.46328048e-02, -2.96825279e-05,  8.20523188e-02,
          9.38891981e-02,  1.05729491e-01,  1.17566379e-01,
          1.29400994e-01, -1.40578935e-03,  1.40578974e-03,
          3.21344335e-03, -3.21344253e-03,  6.46432456e-03,
         -6.46383221e-03, -2.07621566e-04,  2.07621634e-04,
         -6.43155989e-05,  2.32137978e-04,  5.28639285e-01],
        [ 3.02621380e-02, -3.02621315e-02, -7.34913140e-03,
          7.34913311e-03, -2.27946303e+00, -2.48210508e+00,
         -2.91484892e+00,  1.68653348e+00,  8.04265797e+00,
         -1.02260740e-04,  1.02260783e-04,  5.99320951e-03,
          7.15498954e-02,  1.00537141e-04,  3.21404961e-01,
          3.65662240e-01,  4.10097454e-01,  4.55182247e-01,
          5.00424255e-01,  7.89678516e-04, -7.89676987e-04,
          3.68896457e-03, -3.68896139e-03, -2.89919600e-02,
          2.89938719e-02,  2.89682407e-03, -2.89682381e-03,
         -3.84515683e-04,  1.43789381e-03,  2.05277472e+00],
        [-1.99464587e-05,  1.99464594e-05, -1.30589153e-05,
          1.30589155e-05, -3.22368131e-05,  5.22454387e-05,
          1.93162101e-04,  9.47453176e-05, -1.02260740e-04,
          4.01815892e-04, -4.01815892e-04, -4.50539779e-04,
         -1.21436343e-05, -2.30341629e-06,  1.44530307e-05,
          2.85106728e-05,  4.16192187e-05,  5.41858937e-05,
          6.68883104e-05,  4.55056838e-05, -4.55056837e-05,
          1.73925649e-05, -1.73925646e-05, -1.62776664e-04,
          1.62776855e-04,  8.31695908e-06, -8.31695905e-06,
         -5.45876183e-05,  1.54444699e-05,  2.05652697e-04],
        [ 1.99464587e-05, -1.99464593e-05,  1.30589151e-05,
         -1.30589152e-05,  3.22368069e-05, -5.22454559e-05,
         -1.93162117e-04, -9.47453065e-05,  1.02260783e-04,
         -4.01815892e-04,  4.01815892e-04,  4.50539779e-04,
          1.21436326e-05,  2.30341629e-06, -1.44530281e-05,
         -2.85106701e-05, -4.16192158e-05, -5.41858906e-05,
         -6.68883072e-05, -4.55056838e-05,  4.55056837e-05,
         -1.73925650e-05,  1.73925647e-05,  1.62776664e-04,
         -1.62776855e-04, -8.31695911e-06,  8.31695908e-06,
          5.45876182e-05, -1.54444699e-05, -2.05652682e-04],
        [ 4.07035489e-04, -4.07035524e-04,  1.88143362e-04,
         -1.88143372e-04, -9.59366771e-03, -2.28021954e-03,
         -4.14278841e-03, -1.37573001e-03,  5.99320951e-03,
         -4.50539779e-04,  4.50539779e-04,  2.78997844e-02,
         -1.45068845e-03, -2.83072112e-05, -2.86453045e-03,
         -2.57853277e-03, -2.29049996e-03, -1.98686626e-03,
         -1.67871064e-03, -6.31264399e-04,  6.31264391e-04,
          1.65351114e-06, -1.65352882e-06,  1.61243868e-03,
         -1.61244930e-03,  4.18250941e-04, -4.18250943e-04,
          3.98120405e-04,  2.19805805e-05, -1.13991533e-02],
        [ 6.72055709e-03, -6.72055735e-03,  4.18431529e-03,
         -4.18431536e-03,  1.28761693e-02, -6.44170895e-02,
         -8.72011295e-02, -1.46328048e-02,  7.15498954e-02,
         -1.21436343e-05,  1.21436326e-05, -1.45068845e-03,
          1.99390476e-01,  5.42676361e-06, -2.38423441e-02,
         -2.01034727e-02, -1.63634377e-02, -1.26258220e-02,
         -8.88940070e-03,  2.96303666e-03, -2.96303672e-03,
          4.30911383e-03, -4.30911396e-03, -1.08788895e-02,
          1.08788133e-02, -1.43740457e-03,  1.43740456e-03,
         -4.33150130e-05,  3.53490230e-04, -8.18249580e-02],
        [ 1.07083701e-06, -1.07083705e-06,  4.55051840e-07,
         -4.55051850e-07, -1.57402027e-04,  8.87772450e-05,
         -1.42758950e-05, -2.96825279e-05,  1.00537141e-04,
         -2.30341629e-06,  2.30341629e-06, -2.83072112e-05,
          5.42676361e-06,  5.96281660e-05,  4.68581274e-06,
          2.15517214e-07, -3.91266301e-06, -5.85422640e-06,
         -7.18095595e-06,  1.80656181e-06, -1.80656181e-06,
         -1.65560159e-06,  1.65560157e-06,  1.32132503e-06,
         -1.32133625e-06, -2.84190520e-05,  2.84190520e-05,
         -1.68839266e-05, -1.01532362e-06, -1.20460527e-05],
        [-6.42259225e-03,  6.42259263e-03, -6.55615389e-03,
          6.55615399e-03, -3.56553013e-02, -1.24404247e-01,
         -1.21234361e-01,  8.20523188e-02,  3.21404961e-01,
          1.44530307e-05, -1.44530281e-05, -2.86453045e-03,
         -2.38423441e-02,  4.68581274e-06,  1.71515056e-01,
          9.79622986e-02,  2.44157190e-02, -4.91081225e-02,
         -1.22626444e-01,  4.77982072e-03, -4.77982063e-03,
          5.35793894e-03, -5.35793875e-03, -6.64537581e-03,
          6.64548959e-03, -5.92757155e-04,  5.92757171e-04,
         -7.88753761e-05, -5.94605801e-04,  1.22163376e-01],
        [-3.27883901e-03,  3.27883942e-03, -4.59019269e-03,
          4.59019280e-03, -4.72091778e-02, -1.44609718e-01,
         -1.37730399e-01,  9.38891981e-02,  3.65662240e-01,
          2.85106728e-05, -2.85106701e-05, -2.57853277e-03,
         -2.01034727e-02,  2.15517214e-07,  9.79622986e-02,
          6.19781069e-02,  2.59962754e-02, -9.98057517e-03,
         -4.59565521e-02,  2.30825474e-03, -2.30825464e-03,
          2.50679247e-03, -2.50679227e-03, -4.23696119e-03,
          4.23708227e-03, -4.31296380e-04,  4.31296397e-04,
         -6.79169243e-05, -4.58428092e-04,  1.30002150e-01],
        [-1.34911802e-04,  1.34912235e-04, -2.62396186e-03,
          2.62396198e-03, -5.88984775e-02, -1.64793666e-01,
         -1.54278090e-01,  1.05729491e-01,  4.10097454e-01,
          4.16192187e-05, -4.16192158e-05, -2.29049996e-03,
         -1.63634377e-02, -3.91266301e-06,  2.44157190e-02,
          2.59962754e-02,  2.75767061e-02,  2.91490213e-02,
          3.07186731e-02, -1.64270344e-04,  1.64270447e-04,
         -3.44571446e-04,  3.44571660e-04, -1.82854434e-03,
          1.82867274e-03, -2.72759361e-04,  2.72759379e-04,
         -5.77297966e-05, -3.22244555e-04,  1.37856720e-01],
        [ 3.00900590e-03, -3.00900544e-03, -6.60817057e-04,
          6.60817179e-04, -7.11357961e-02, -1.84858548e-01,
         -1.71003673e-01,  1.17566379e-01,  4.55182247e-01,
          5.41858937e-05, -5.41858906e-05, -1.98686626e-03,
         -1.26258220e-02, -5.85422640e-06, -4.91081225e-02,
         -9.98057517e-03,  2.91490213e-02,  6.82804442e-02,
          1.07411793e-01, -2.64207751e-03,  2.64207762e-03,
         -3.19556831e-03,  3.19556853e-03,  5.79851117e-04,
         -5.79715371e-04, -1.16861115e-04,  1.16861133e-04,
         -5.02020834e-05, -1.85716909e-04,  1.45750618e-01],
        [ 6.15286244e-03, -6.15286196e-03,  1.30120919e-03,
         -1.30120907e-03, -8.35106465e-02, -2.04890916e-01,
         -1.87771337e-01,  1.29400994e-01,  5.00424255e-01,
          6.68883104e-05, -6.68883072e-05, -1.67871064e-03,
         -8.88940070e-03, -7.18095595e-06, -1.22626444e-01,
         -4.59565521e-02,  3.07186731e-02,  1.07411793e-01,
          1.84109099e-01, -5.12132568e-03,  5.12132579e-03,
         -6.04637033e-03,  6.04637057e-03,  2.98823871e-03,
         -2.98809561e-03,  3.91321265e-05, -3.91321068e-05,
         -4.33037337e-05, -4.90765042e-05,  1.53652361e-01],
        [ 8.80510639e-06, -8.80510903e-06,  1.31208550e-04,
         -1.31208551e-04,  3.18258708e-03, -5.60379132e-04,
         -2.84554766e-03, -1.40578935e-03,  7.89678516e-04,
          4.55056838e-05, -4.55056838e-05, -6.31264399e-04,
          2.96303666e-03,  1.80656181e-06,  4.77982072e-03,
          2.30825474e-03, -1.64270344e-04, -2.64207751e-03,
         -5.12132568e-03,  9.07737074e-03, -9.07737074e-03,
         -1.40700102e-03,  1.40700102e-03,  2.11901251e-03,
         -2.11901330e-03, -3.07071882e-05,  3.07071881e-05,
         -2.72602278e-05, -5.77435224e-04, -8.39453008e-04],
        [-8.80510690e-06,  8.80510954e-06, -1.31208560e-04,
          1.31208560e-04, -3.18258730e-03,  5.60378519e-04,
          2.84554708e-03,  1.40578974e-03, -7.89676987e-04,
         -4.55056837e-05,  4.55056837e-05,  6.31264391e-04,
         -2.96303672e-03, -1.80656181e-06, -4.77982063e-03,
         -2.30825464e-03,  1.64270447e-04,  2.64207762e-03,
          5.12132579e-03, -9.07737074e-03,  9.07737074e-03,
          1.40700102e-03, -1.40700102e-03, -2.11901252e-03,
          2.11901330e-03,  3.07071871e-05, -3.07071870e-05,
          2.72602276e-05,  5.77435223e-04,  8.39453522e-04],
        [-1.33839647e-04,  1.33839641e-04, -1.50709367e-05,
          1.50709353e-05, -9.49758892e-03, -1.74259702e-03,
          2.61616790e-03,  3.21344335e-03,  3.68896457e-03,
          1.73925649e-05, -1.73925650e-05,  1.65351114e-06,
          4.30911383e-03, -1.65560159e-06,  5.35793894e-03,
          2.50679247e-03, -3.44571446e-04, -3.19556831e-03,
         -6.04637033e-03, -1.40700102e-03,  1.40700102e-03,
          9.19765371e-03, -9.19765372e-03, -1.56692057e-04,
          1.56690454e-04,  1.35524852e-04, -1.35524853e-04,
          7.40840191e-06,  2.23591393e-04, -1.72160980e-03],
        [ 1.33839646e-04, -1.33839640e-04,  1.50709163e-05,
         -1.50709149e-05,  9.49758846e-03,  1.74259575e-03,
         -2.61616910e-03, -3.21344253e-03, -3.68896139e-03,
         -1.73925646e-05,  1.73925647e-05, -1.65352882e-06,
         -4.30911396e-03,  1.65560157e-06, -5.35793875e-03,
         -2.50679227e-03,  3.44571660e-04,  3.19556853e-03,
          6.04637057e-03,  1.40700102e-03, -1.40700102e-03,
         -9.19765372e-03,  9.19765372e-03,  1.56692043e-04,
         -1.56690439e-04, -1.35524854e-04,  1.35524855e-04,
         -7.40840237e-06, -2.23591395e-04,  1.72161087e-03],
        [-8.56231710e-04,  8.56231681e-04, -5.70938238e-04,
          5.70938231e-04, -3.83491705e-02,  1.55364127e-02,
          3.61974284e-02,  6.46432456e-03, -2.89919600e-02,
         -1.62776664e-04,  1.62776664e-04,  1.61243868e-03,
         -1.08788895e-02,  1.32132503e-06, -6.64537581e-03,
         -4.23696119e-03, -1.82854434e-03,  5.79851117e-04,
          2.98823871e-03,  2.11901251e-03, -2.11901252e-03,
         -1.56692057e-04,  1.56692043e-04,  1.51377649e-02,
         -1.51377734e-02, -8.76432868e-06,  8.76432751e-06,
          4.48666906e-05,  4.15383902e-04, -9.14296378e-03],
        [ 8.56231081e-04, -8.56231052e-04,  5.70926010e-04,
         -5.70926002e-04,  3.83488945e-02, -1.55371797e-02,
         -3.61981475e-02, -6.46383221e-03,  2.89938719e-02,
          1.62776855e-04, -1.62776855e-04, -1.61244930e-03,
          1.08788133e-02, -1.32133625e-06,  6.64548959e-03,
          4.23708227e-03,  1.82867274e-03, -5.79715371e-04,
         -2.98809561e-03, -2.11901330e-03,  2.11901330e-03,
          1.56690454e-04, -1.56690439e-04, -1.51377734e-02,
          1.51377819e-02,  8.76304848e-06, -8.76304730e-06,
         -4.48669681e-05, -4.15385401e-04,  9.14360588e-03],
        [-1.80947749e-04,  1.80947744e-04,  1.86561144e-05,
         -1.86561155e-05, -2.98712432e-03,  7.74301198e-05,
         -1.15406817e-03, -2.07621566e-04,  2.89682407e-03,
          8.31695908e-06, -8.31695911e-06,  4.18250941e-04,
         -1.43740457e-03, -2.84190520e-05, -5.92757155e-04,
         -4.31296380e-04, -2.72759361e-04, -1.16861115e-04,
          3.91321265e-05, -3.07071882e-05,  3.07071871e-05,
          1.35524852e-04, -1.35524854e-04, -8.76432868e-06,
          8.76304848e-06,  3.94995832e-03, -3.94995832e-03,
          8.81318865e-05,  5.39725609e-05, -1.37455965e-03],
        [ 1.80947749e-04, -1.80947744e-04, -1.86561161e-05,
          1.86561172e-05,  2.98712428e-03, -7.74302254e-05,
          1.15406807e-03,  2.07621634e-04, -2.89682381e-03,
         -8.31695905e-06,  8.31695908e-06, -4.18250943e-04,
          1.43740456e-03,  2.84190520e-05,  5.92757171e-04,
          4.31296397e-04,  2.72759379e-04,  1.16861133e-04,
         -3.91321068e-05,  3.07071881e-05, -3.07071870e-05,
         -1.35524853e-04,  1.35524855e-04,  8.76432751e-06,
         -8.76304730e-06, -3.94995832e-03,  3.94995832e-03,
         -8.81318865e-05, -5.39725611e-05,  1.37455974e-03],
        [ 1.85872991e-06, -1.85873085e-06,  1.07570757e-05,
         -1.07570760e-05,  1.17404967e-04, -4.28395323e-05,
          7.62357293e-05, -6.43155989e-05, -3.84515683e-04,
         -5.45876183e-05,  5.45876182e-05,  3.98120405e-04,
         -4.33150130e-05, -1.68839266e-05, -7.88753761e-05,
         -6.79169243e-05, -5.77297966e-05, -5.02020834e-05,
         -4.33037337e-05, -2.72602278e-05,  2.72602276e-05,
          7.40840191e-06, -7.40840237e-06,  4.48666906e-05,
         -4.48669681e-05,  8.81318865e-05, -8.81318865e-05,
          3.03019636e-04,  7.51479393e-07, -2.98028164e-04],
        [ 4.30010067e-04, -4.30010072e-04,  6.75710489e-05,
         -6.75710502e-05, -1.73425692e-03, -9.24522455e-04,
         -6.21337714e-04,  2.32137978e-04,  1.43789381e-03,
          1.54444699e-05, -1.54444699e-05,  2.19805805e-05,
          3.53490230e-04, -1.01532362e-06, -5.94605801e-04,
         -4.58428092e-04, -3.22244555e-04, -1.85716909e-04,
         -4.90765042e-05, -5.77435224e-04,  5.77435223e-04,
          2.23591393e-04, -2.23591395e-04,  4.15383902e-04,
         -4.15385401e-04,  5.39725609e-05, -5.39725611e-05,
          7.51479393e-07,  1.93452710e-03, -1.61008518e-03],
        [-6.74666373e-04,  6.74668541e-04, -1.31300918e-02,
          1.31300923e-02, -2.96409537e-01, -8.23558421e-01,
         -7.72019227e-01,  5.28639285e-01,  2.05277472e+00,
          2.05652697e-04, -2.05652682e-04, -1.13991533e-02,
         -8.18249580e-02, -1.20460527e-05,  1.22163376e-01,
          1.30002150e-01,  1.37856720e-01,  1.45750618e-01,
          1.53652361e-01, -8.39453008e-04,  8.39453522e-04,
         -1.72160980e-03,  1.72161087e-03, -9.14296378e-03,
          9.14360588e-03, -1.37455965e-03,  1.37455974e-03,
         -2.98028164e-04, -1.61008518e-03,  6.89426865e-01]]),
 'se': array([0.11943457, 0.11943457, 0.12541491, 0.12541491, 1.34417729,
        1.13278963, 1.11381692, 0.71453629, 2.83595803, 0.02004535,
        0.02004535, 0.16703229, 0.44653161, 0.00772193, 0.41414376,
        0.24895403, 0.16606236, 0.26130527, 0.42907936, 0.09527524,
        0.09527524, 0.0959044 , 0.0959044 , 0.12303562, 0.12303569,
        0.06284869, 0.06284869, 0.01740746, 0.04398326, 0.83031733]),
 'AIC': -inf,
 'AICc': -inf,
 'pseudo_r2': OrderedDict([('explained_deviance', nan),
              ('McFadden', nan),
              ('McFadden_adj', nan)]),
 'GCV': inf,
 'UBRE': None,
 'loglikelihood': inf,
 'deviance': inf,
 'p_values': [0.00016579268901795174,
  0.2543762117044934,
  1.1102230246251565e-16,
  0.4008035515373921,
  0.00324742170645953,
  9.866552019843766e-12,
  0.04188536935698528,
  0.14995757716970048,
  0.0005011101466132484,
  0.9280147067854394,
  0.7870586981251073,
  0.36807587129007946,
  1.2542685047245428e-06,
  1.2405632823009327e-05,
  1.1102230246251565e-16]}