-
Notifications
You must be signed in to change notification settings - Fork 18
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
mixer_figures.py combine: numpy.linalg.LinAlgError: singular matrix #58
Comments
Hi, The following links contain the results, scripts, and log files for running bivariate analysis. Any help is appreciated. Thank you! Best, |
Hi Huifang-Xu, I get that error too. What I do is that I call 'mixer_figures.py combine' in a loop, each time removing one of the rep file; e.g.:
Now suppose that without rep7 the combine function didn't yield the 'singular matrix' error, then remove it entirely, e.g. Then relaunch the combine like usual. I wish I had a better solution. Kind of amazing to get a singular matrix with all that number crunching :-) |
Hi, Thank you for your reply! I found another solution. When I change the parameter Thanks, |
Ah, yes, much better answer! |
I suppose you should change allow_singular=False to allow_singular=True in the following script: python3.8/site-packages/scipy/stats/_multivariate.py |
Got it, thank you! |
Hi,
I tried to run bivariate analysis for multiple traits with MiXeR. One of the bivariate analyses fialed to produce results with the error meaasge "numpy.linalg.LinAlgError: singular matrix". No error message was generated in the two steps of fitting and applying model. All json files exist.
The codes I used:
I would like to know why this error message occured and how to fix it. Any help is appreciated. Thank you!
Huifang
The text was updated successfully, but these errors were encountered: