Skip to content

chi-squared MLP model#5

Merged
7 commits merged intomainfrom
chi2-nn-model
Sep 17, 2025
Merged

chi-squared MLP model#5
7 commits merged intomainfrom
chi2-nn-model

Conversation

@hombit
Copy link
Collaborator

@hombit hombit commented Sep 16, 2025

Adds a simple MLP model for the u-function and a train step function

@codecov
Copy link

codecov bot commented Sep 16, 2025

Codecov Report

❌ Patch coverage is 96.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.64%. Comparing base (f012fb6) to head (3cca8d7).
⚠️ Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
src/uncle_val/datasets.py 93.75% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main       #5      +/-   ##
===========================================
- Coverage   100.00%   97.64%   -2.36%     
===========================================
  Files            1        3       +2     
  Lines           25       85      +60     
===========================================
+ Hits            25       83      +58     
- Misses           0        2       +2     

☔ View full report in Codecov by Sentry.
📢 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.

@hombit hombit marked this pull request as ready for review September 17, 2025 00:02
@hombit hombit requested a review from delucchi-cmu September 17, 2025 00:03
@hombit hombit mentioned this pull request Sep 17, 2025
assert len(nf) == n_obj
assert len(nf["objectForcedSource.psfFlux"]) == n_obj * n_src

whiten = nf.reduce(
Copy link
Contributor

Choose a reason for hiding this comment

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

These whitening assertions feel a little out of place in this dataset generation tests.

rng=rng,
)
assert len(nf) == n_obj
assert len(nf["objectForcedSource.psfFlux"]) == n_obj * n_src
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be good to at least assert names of columns.

n_obj: int = 1000,
n_src: int | NDArray = 100,
err: None | Callable[[float, Generator], float] = None,
u: float | Callable[[float, float], float] = 1.0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this have a more descriptive, even uncertain_underestimate

@hombit hombit closed this pull request by merging all changes into main in 236c0b2 Sep 17, 2025
@hombit hombit deleted the chi2-nn-model branch September 22, 2025 19:37
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