Skip to content

feat: Allow model_utils.prediction to skip uncertainty calculation#510

Open
MoAly98 wants to merge 7 commits intoscikit-hep:masterfrom
MoAly98:maly-issue-417
Open

feat: Allow model_utils.prediction to skip uncertainty calculation#510
MoAly98 wants to merge 7 commits intoscikit-hep:masterfrom
MoAly98:maly-issue-417

Conversation

@MoAly98
Copy link
Copy Markdown
Collaborator

@MoAly98 MoAly98 commented Feb 25, 2025

closes #417.

This solution returns zero uncertainty when calculation is skipped, avoiding change in ModelPrediction class.

* allow user to return yield predictions without computing uncertainties. A null uncertainty is returned instead. 

@MoAly98 MoAly98 self-assigned this Feb 25, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d663151) to head (8c5a72f).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #510   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         2099      2105    +6     
  Branches       291       292    +1     
=========================================
+ Hits          2099      2105    +6     

☔ 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.

@MoAly98 MoAly98 changed the title Allow model_utils.prediction to skip uncertainty calculation feat: Allow model_utils.prediction to skip uncertainty calculation Feb 28, 2025
@MoAly98 MoAly98 added the enhancement New feature or request label Mar 5, 2025
Comment thread src/cabinetry/model_utils.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model prediction without uncertainties

2 participants