-
Notifications
You must be signed in to change notification settings - Fork 10
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
A question about most local maxima #6
Comments
Yeah I just downloaded this module and encountered the very same issue as l_scale is 0 for my data.
|
Just wanted to add here that, when I got an error message "zero-size array to reduction operation minimum which has no identity" from using find_peaks, implementing the change you suggested fixed my issue. |
Why when I try to change l_scale to l_scale+1 I get the wrong peak, although this does not report an error anymore. |
Hi, @ig248 ,
I read the original paper and compared it with your implementation, I am wondering why below code reshapes LSM matrix by
LSM[0:l_scale, :]
but not byLSM[0:l_scale+1, :]
?pyampd/pyampd/ampd.py
Line 106 in cd24703
As the paper said, it reshapes the LSM matrix by removing all elements m_{k,i} for which k > λ holds. So it should lead to new λ ×N matrix. But in your implementation, the new matrix is (λ-1) ×N.
And under certain dataset, the
l_scale
may equals to 0, thenLSM[0:0]
will throw an exception...Looking forward to your response
The text was updated successfully, but these errors were encountered: