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?
The problem might be related to this Question. Have you tried normalizing both the data array
yand the dictionaryX?