Skip to content

Image parameter smearing. - #89

Merged
GernotMaier merged 3 commits into
mainfrom
smearing
Nov 14, 2026
Merged

GernotMaier merged 3 commits into
mainfrom
smearing

Conversation

@GernotMaier

Copy link
Copy Markdown
Member

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread src/eventdisplay_ml/data_processing.py Resolved
Comment thread src/eventdisplay_ml/smearing.py Resolved
@GernotMaier
GernotMaier marked this pull request as ready for review November 14, 2026 16:18
@GernotMaier
GernotMaier merged commit 54a51c1 into main Nov 14, 2026
1 check passed
@GernotMaier
GernotMaier deleted the smearing branch November 14, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants