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
Again, pardon my ignorance if I'm missing something, but I'm wondering if there's a way to speed this up? I think the only thing useful about this is self.normalized_cov_params which is only used oonly for robust covariance (again, I think).
Would it be possible to...
Randomly reduce the number of records that goes into the pinv to speed the matrix?
Allow the user to skip this step and only use if you want a robust covariance?
Perform the pinv as part of fit, only if you select a robus covariance?
Use joblib to fork a separate thread to calculate this
I think the main improvement would be to remove as much as possible for an initial estimate and during optimization, and only do a full version at the end.
e.g. we still need a WLS version that uses moment matrices instead of a full exog linalg decomposition.
Is it relatively cheap to split the data into subsets of observations where each subset has full rank exog, i.e. each categorical level shows up in each subset?
Activity
josef-pkt commentedon May 12, 2018
How many iterations do irls and newton take?
I think the main improvement would be to remove as much as possible for an initial estimate and during optimization, and only do a full version at the end.
e.g. we still need a WLS version that uses moment matrices instead of a full exog linalg decomposition.
Is it relatively cheap to split the data into subsets of observations where each subset has full rank exog, i.e. each categorical level shows up in each subset?
thequackdaddy commentedon May 12, 2018
To be clear, pinv runs before
fitmethod is run... this piece runs once you instantiate theGLMclass.newtonwitheimI usedmax_start_irls=1and iterations was 7newtonwithoimI usedmax_start_irls=1and iterations is 5irlstakes 7 iterationsjosef-pkt commentedon May 12, 2018
Ok, I didn't realize that this is about
GLM.initializesee
#1720 (comment)
I never checked this in detail.
I think these parts can be removed and we only compute the things that we actually need.
Merge pull request statsmodels#4624 from thequackdaddy/ignore_pinv