Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Collect SNR's of background events #456

Open
EthanMarx opened this issue Nov 2, 2023 · 3 comments
Open

Collect SNR's of background events #456

EthanMarx opened this issue Nov 2, 2023 · 3 comments

Comments

@EthanMarx
Copy link
Collaborator

It would be great to have handy the SNR's of the background event's we collect, and save them in the Ledger. Not sure where the best place to do this calculation is. Maybe as a post processing step in the infer project? Once a segment is complete, construct a tensor of indices corresponding to the times of background events. Slice out these windows from the background into a tensor, and pass them through ml4gw.gw.compute_network_snr.

@EthanMarx
Copy link
Collaborator Author

Actually, would be great to have the individual IFO SNR's as well.

@EthanMarx
Copy link
Collaborator Author

At Erik's request, we should also calculate pearson statistics for events. I am doubtful this will add discriminatory power, but the more data the merrier. @alecgunny I know you have a gpu implementation living somewhere. Might be nice to add that to ml4gw for use here.

@alecgunny
Copy link
Collaborator

For background SNR, is this just the inner product of the background timeseries with itself (including PSD normalization)? Note that our existing implementation is intended for timeseries that don't include noise, but I guess I don't see why they should be any different. Worth noting that in ML4GW/ml4gw#79 I've made some changes to the SNR calculation code that could possibly help here, though maybe we already had everything we needed.

As for the pearson correlation, I've opened that up in ML4GW/ml4gw#78 if you want to take a look, that should be good to go. The cool thing about having these in torch is it makes possible supercharging the old vizapp to eventually having a GPU-accelerated real-time model analysis application that folks can play with.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants