0

I run orthogonal matching pursuit algorithm in python and get the following warning:

RuntimeWarning: Orthogonal matching pursuit ended prematurely due to linear dependence in the dictionary. The requested precision might not have been met.

How should I remove the linear dependency in my dictionary?

  • I have the same problem, have you found the solution? – lenhhoxung Dec 29 '16 at 13:44
  • Possible duplicate of ["Linear dependence in the dictionary" exception in sklearns OMP](https://stackoverflow.com/questions/42131696/linear-dependence-in-the-dictionary-exception-in-sklearns-omp) – Nimrod Morag Mar 13 '19 at 08:18

1 Answers1

0

The problem might be related to this Question. Have you tried normalizing both the data array y and the dictionary X?

Community
  • 1
  • 1
obachtos
  • 977
  • 1
  • 12
  • 30