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
Error: "numpy.linalg.LinAlgError: SVD did not converge in Linear Least Squares" #256
Comments
Updating all of the modules in |
Thanks for reporting. Do you happen to have a local copy which does work? I'm wondering if this is solvable by downgrading certain libraries. We also have this same issue in Impulcifer: jaakkopasanen/Impulcifer#51. This seems to be caused by a bug in Windows but I cannot reproduce it myself. I suspect that if the bug is in Windows, no matter what versions of the dependencies are used, the bug is going to be there. Maybe I'll just do a fallback to a simple moving average filter if the Savitzky-Golay throws this error. |
I should have a copy, but right now I'm away from the laptop with it. I should be able to check it in a few hours. That Impulcifier issue was from "Jul 7, 2020", although I haven't experienced the bug at any time between then and "Nov 29, 2020". I've kept my Windows and Python packages up to date (even using Maybe it's the Python version in conflict with the Windows version I'm using? I'll have to check the version on the laptop with the old copy. |
@jaakkopasanen It's because of a Windows 10 update, and it seems the bug comes and goes with said updates. According to this NumPy issue, a patch that fixes this is on the Developer (not Beta or Stable) update branch of Windows 10. |
Thanks for checking! I'll just implement the simple moving average fallback. It's perhaps not quite as good but asking users to switch to developer realse of Windows is not realistic. Hopefully the fix comes to proper release of Windows soon. |
I'm going to keep a copy of the Savitzky-Golay filter copy of AutoEQ until an update comes. In that way, I can notify if it works on that build. To continue with testing, I'll rollback my Windows 10 version to see if the bug was (re?)introduced in the current build. Edit: I've rolled back to |
@jaakkopasanen
|
@NekoAlosama good news! I'll think I'm going to hold off with the moving average fallback since this looks to be fixed soon enough. Thanks a lot for keeping up with this issue! |
@NekoAlosama I created a branch numpy-1.19.5 which contains new |
@jaakkopasanen I have a small problem with
As I've said already, this is a known bug with So the beginning of
instead of Other than that, the new |
@jaakkopasanen The branch works as long as I do the fix above. I'll close this when I can confirm that the next scipy release fixes the bug above. |
@NekoAlosama could you try if installing |
@jaakkopasanen scipy 1.5.4 still works. I'm just trying out 1.6.0 to see if it's still stable. You can decide if it's better to use it in the requirements.txt. |
@jaakkopasanen You can close this issue when you update the requirements.txt on the master branch. |
@NekoAlosama I updated the |
Everything seems to be working out. Of course, if any problems pop up they can just be issued, |
Merged to master. Closing the ticket since this has been tested in the |
Describe the bug
When using
results\update_results.py
, the program produces the error shown in the titlenumpy.linalg.LinAlgError: SVD did not converge in Linear Least Squares
.To Reproduce
py -3 results\update_results.py
on the current master.Expected behavior
Results would be generated.
Console Output
System:
Additional context
I did not use my fork of AutoEQ for this, so the changes on that fork shouldn't be affecting this.
The text was updated successfully, but these errors were encountered: