Learning dictionary for events

Dear developers,
I am implementing the code for the following paper:
Jas, M., La Tour, T. D., Şimşekli, U., & Gramfort, A. (2017). Learning the morphology of brain signals using alpha-stable convolutional sparse coding. arXiv preprint arXiv:1705.08006.

Unfortunately, I am currently stuck in the optimization step for the activations.
Here is the Github link to the codes I have developed so far:

The problem is that for optimization I am getting ABNORMAL_TERMINATION_IN_LNSRCH.
I would appreciate it if someone could help me in finding the potential errors and get the optimization done.

Thanks

Hi Mahdi,

Why are you trying to reimplement this? We provide all the code here:

https://alphacsc.github.io/

with fully documented source code and examples. Perhaps you have not seen this.

Also, quick googling seems to suggest that the error you are getting is because your gradient doesn’t match the cost function. You might want to use scipy functions check_grad to ensure you are computing the right thing.

Mainak

Thanks a lot I had searched for it with no sucess.
Thanks.