Repository navigation
Image parameter smearing. - #89
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The implementation retains large float64 draw buffers for all seven strength streams and telescope slots even when most are unused, creating a substantial out-of-memory risk on large chunks.
2 open issues
What changed in this PR
Adds reproducible, optional image-parameter smearing for stereo model training and application, using YAML-configured perturbations keyed by run and event identifiers.
Changes:
- Adds YAML validation and deterministic image perturbation utilities.
- Integrates smearing into stereo flattening, training, and inference workflows.
- Adds documentation, configuration examples, dependency metadata, and tests for reproducibility and centroid-distance updates.
| File | Description |
|---|---|
| tests/test_stereo_inactive_telescope_mask.py | Tests consistency between training and application flattening, including centroid-distance updates. |
| tests/test_smearing.py | Tests deterministic perturbations, masking, validation, and zero-fraction behavior. |
| src/eventdisplay_ml/smearing.py | Implements YAML validation and deterministic image perturbations. |
| src/eventdisplay_ml/models.py | Passes smearing configuration through stereo inference flattening. |
| src/eventdisplay_ml/data_processing.py | Applies smearing before telescope sorting and feature derivation, including recalculation of affected features. |
| src/eventdisplay_ml/config.py | Adds stereo training and application CLI configuration for smearing. |
| README.md | Documents smearing usage, reproducibility, scope, and limitations. |
| pyproject.toml | Adds PyYAML as a runtime dependency. |
| docs/changes/89.feature.md | Records the new stereo image-smearing feature. |
| configs/image_smearing.example.yaml | Provides an exploratory YAML configuration example for image smearing. |
Review effort: Lite
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.

Stereo training and application can optionally perturb MC image parameters using a reproducible YAML configuration, for instrument-mismatch studies.