-
Notifications
You must be signed in to change notification settings - Fork 17
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
Parameter equivalence between HSDetection and Lightning #80
Comments
Thanks for raising this!
The new code deviates from the original in several ways. Main factors:
So the results will be different. You can compare the two versions here:
This is purely a scaling issue (quantisation).
There was an additional factor of 64 in the original code. This number is the old default (20*64).
Parts of the code that are parallel are scaling, lowpass and common referencing. The main detection code is vectorised so benefits from parallel execution in a single core. Distributing this across cores has diminishing returns as there's just too much data transfer from/to memory. So you should see the occasional use of multiple cores, but not throughout. I'll check this though, maybe the compiler does not deal with it properly in your case. This gives you an idea of the expected performance benefits: Hope this makes sense, and I'll get back about the multi-threading soon. |
Thanks a lot for the details !
From that and the comparison you provided, I assume this was initially handeld by this section ?
Regarding the preprocessing, from what I could gather from
Makes sense !
Does the same logic apply to chunk size ? Or shoud I just specify it as however much fits in memory ? Regarding some of the other parameters, if I understand correctly :
Thanks again ! |
I noticed a few things while comparing the newer detection method with the older one :
n_jobs
argument for that module.Running on a Xeon Silver 4210R with 40 cores, Ubuntu 24.04. Chunk size on auto and set at 4884.
Sorry for the mixed bag of questions !
The text was updated successfully, but these errors were encountered: