-
Notifications
You must be signed in to change notification settings - Fork 120
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
Optimization demo looks broken #6
Comments
What version of chumpy are you running? Is it from pipy or from latest master on github? For me, ch.demo('optimisation') is working. |
I'm using the latest master. |
From my testing, it seems that Mavericks exhibits no problem, Ubuntu 12.04 gives a warning but still works, and Ubuntu 14.04 hangs. I don't know what is causing the problem, or why behavior is different across platforms. |
Oh. It actually hangs on my mac. Probably the default numpy and scipy version is different across platform. I am using scipy==0.14.0, numpy==1.8.2 on my mac. |
@mattloper Sorry I accidentally deleted the previous comment. In scipy 0.14.0, scipy.sparse.linalg.spsolve is filling nan if singular matrix is detected. See diff line 139 in scipy/scipy@2344e41 |
Finally fixed this, by falling back to scipy.sparse.linalg.lsqr when warnings are fired (typically with a singular matrix). The problem is that when any single column of the Jacobian is all-zeros, the predicted hessian is non-invertable. Sometimes such zero-columns indicates user-error (optimizing over vars that don't affect output), other times not. |
Running ch.demo('optimization') and halted.
Ctrl-c gives
The text was updated successfully, but these errors were encountered: