-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
method='LU' memory use in spreg.ML_Error()? #82
Comments
Does this happen with other backends? If not, it may be specific to the scipy.sparse.SuperLU solver. Could you post the gal? I'm happy to generate fake data to correspond to it. |
It should remain sparse, since the input remains sparse at line 192, but I can instrument this. |
If the input is a sparse object,
However, depending on the matrix, its inverse will be dense, albeit still a sparse object. |
Yes, I think that for |
Ahh, I see.... If that's the case, then, @rsbivand's suggestion is very reasonable, I think. We should avoid the rest of the baseclass (e.g, avoid taking the My hope for implementing We'd need to do this as well for |
Thank you for the file! Will use for the test case for this. |
The way around this for large N may be an FD Hessian if one (that works) is available in a Python package you already use. Maybe from a numerical optimizer? Unlike the line search, it starts from the \lambda and \beta we have, and searches close to them to estimate the joint distribution shape. Here we only need \lamba (and maybe \sigma^2) because there are no interactions with the var-covar of the \betas. While you are looking at that bit of ML_Error, maybe consider adding the Pace-Lesage Hausman test at least for |
I was trying to fit an ML error model with 71' observations, but memory use grew very quickly. This may be because some kind of parallelization comes into play (it shouldn't), but it feels more like the weights matrix going dense. The messages before I killed the process were:
I think the sparse weights matrix is CSR not CSC. Is the problem in the densifying of the variance covariance matrix? About line
spreg/spreg/ml_error.py
Line 244 in c6d97c1
spinv()
go dense on return?The text was updated successfully, but these errors were encountered: