Skip to content

Error when running glasso(): The system is too ill-conditioned for this solver #2

@gwentea

Description

@gwentea

Dear Author:

Thank you for the great tool for ST analysis.
I was testing my own data following 01_multiple_references.ipynb but ran into error when running glasso(). The ST data was 10X Visium data subsetted to top 2000 HVGs.

Error message:

Traceback (most recent call last):
  File "/SGRNJ03/pipline_test/datascience/chenxuezhen/training/licong/sagenet/multi/script/model.py", line 35, in <module>
    glasso(adata_r1,n_jobs=5)
  File "/SGRNJ/Public/Software/conda_env/ds_scArches/lib/python3.9/site-packages/sagenet/utils.py", line 40, in glasso
    cov = GraphicalLassoCV(alphas=alphas, n_jobs=n_jobs).fit(data)
  File "/SGRNJ/Public/Software/conda_env/ds_scArches/lib/python3.9/site-packages/sklearn/covariance/_graph_lasso.py", line 986, in fit
    self.covariance_, self.precision_, self.n_iter_ = graphical_lasso(
  File "/SGRNJ/Public/Software/conda_env/ds_scArches/lib/python3.9/site-packages/sklearn/covariance/_graph_lasso.py", line 304, in graphical_lasso
    raise e
  File "/SGRNJ/Public/Software/conda_env/ds_scArches/lib/python3.9/site-packages/sklearn/covariance/_graph_lasso.py", line 278, in graphical_lasso
    raise FloatingPointError(
FloatingPointError: The system is too ill-conditioned for this solver. The system is too ill-conditioned for this solver

The problem remained unsolved even after I increased the number of iterations. I am not familiar with the algorithm involved so it would really be great if you could please give me some advice!
Thanks in advance!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions