Add GNPEChirp to training pipeline#356
Open
stephengreen wants to merge 4 commits into
Open
Conversation
Add factor_fiducial_waveform() and HeterodynePhase transform for phase heterodyning, and GNPEChirp transform for chirp mass GNPE conditioning. These enable removing the dominant chirp phase evolution from BNS waveforms, which is critical for neural network training. Based on Max Dax's implementation on bns_add_dingo_pipe_max. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ApplySVD and WhitenFixedASD now operate on sample["waveform"] instead of flat dicts, matching the interface used by all other transforms. This enables HeterodynePhase (which needs sample["parameters"]) to be part of the compression/decompression chain. Also wires in HeterodynePhase to compression (generate_dataset.py) and decompression (waveform_dataset.py), and wraps data as sample dicts in WaveformGenerator and WaveformDataset before passing to transforms. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Wire chirp mass GNPE and physics-based frequency masking into train_builders.py for BNS training support. GNPEChirp samples a chirp mass proxy, applies heterodyning, and adds context parameters. ApplyChirpFrequencyMasking zeros frequency bins below the 0PN inspiral entry frequency for the given chirp mass proxy, avoiding wasted network capacity on empty bins. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GNPEChirpintoset_train_transforms()intrain_builders.py, parallel to existinggnpe_time_shiftsblockGNPEChirptoomit_transformsinbuild_svd_for_embedding_networkDepends on PR #355 (heterodyning transforms). Once #355 is merged into
bns, this PR's diff will show only these changes.YAML config format
Test plan
🤖 Generated with Claude Code