Skip to content

Add per-band FluxErrModel/FluxErrPolyModel and 12 trained flux_err runs - #107

Open
hombit wants to merge 1 commit into
mainfrom
dia-object-support
Open

Add per-band FluxErrModel/FluxErrPolyModel and 12 trained flux_err runs#107
hombit wants to merge 1 commit into
mainfrom
dia-object-support

Conversation

@hombit

@hombit hombit commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds FluxErrModel/FluxErrPolyModel (physics-based, single-feature error-scaling models) trained one band at a time via scripts/train_flux_err.py, plus 12 trained runs (u/g/r/i/z/y × cal/diff) under models/flux_err_*.
  • rubin_dp_catalog_multi_band gains an optional ccd_visit_cols param so training can skip the CCD-visit join entirely when the model doesn't need those features (train_flux_err.py passes ccd_visit_cols=None).
  • plot_kl.py/plot_reduced_chi2.py gain --model-dir-pattern to resolve a per-band flux_err_{band}.pt checkpoint set instead of one shared model.
  • Each run dir includes only the promoted checkpoint (.pt/.onnx), configs, tfevents, and test-split plots; intermediate training snapshots (models/) and materialized validation tensors (validation/) are excluded as scratch.

Test plan

  • Pre-commit hooks (lint, format, unit tests) pass.

FluxErrModel/FluxErrPolyModel (physics-based, single-feature error-scaling
models) are trained one band at a time via scripts/train_flux_err.py rather
than as one multi-band MLP. Supporting changes:
- rubin_dp_catalog_multi_band gains an optional ccd_visit_cols param so
  training can skip the CCD-visit join entirely when the model doesn't
  use those features (train_flux_err.py passes ccd_visit_cols=None).
- plot_kl.py/plot_reduced_chi2.py gain --model-dir-pattern to resolve a
  per-band flux_err_{band}.pt checkpoint set instead of one shared model.

Only each run's promoted checkpoint (.pt/.onnx), configs, tfevents, and
test-split plots are included; intermediate training snapshots
(models/) and materialized validation tensors (validation/) are
excluded as scratch, matching the existing convention for run dirs.
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 18.18182% with 117 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.87%. Comparing base (7c409a0) to head (438aead).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
src/uncle_val/pipelines/plotting.py 5.79% 65 Missing ⚠️
src/uncle_val/learning/models/flux_err_poly.py 23.52% 26 Missing ⚠️
src/uncle_val/learning/models/flux_err.py 25.00% 24 Missing ⚠️
src/uncle_val/datasets/rubin_dp.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #107      +/-   ##
==========================================
- Coverage   52.99%   51.87%   -1.12%     
==========================================
  Files          32       34       +2     
  Lines        2040     2130      +90     
==========================================
+ Hits         1081     1105      +24     
- Misses        959     1025      +66     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant