Skip to content

Conversation

guitargeek
Copy link
Contributor

For non-extended pdfs, the number of generated events in toy studies
should be synced with the number of events in the observed dataset.
Otherwise, the generation of the toy data will fail.

Closes #19419.

@ferdymercury
Copy link
Collaborator

Thanks!! Does this also have some relation to #6949 and #9490?

Copy link

github-actions bot commented Jul 23, 2025

Test Results

    21 files      21 suites   3d 10h 50m 31s ⏱️
 3 218 tests  3 218 ✅ 0 💤 0 ❌
65 804 runs  65 804 ✅ 0 💤 0 ❌

Results for commit ceac460.

♻️ This comment has been updated with latest results.

Just printing an error message is not enough, because this might be
silenced or not seen. Also, the downstream code might not always check
for a `nullptr` return value and do proper error handling, leading to
crashes down the line that are hard to understand.
For non-extended pdfs, the number of generated events in toy studies
should be synced with the number of events in the observed dataset.
Otherwise, the generation of the toy data will fail.

Closes root-project#19419.
Don't run minimizer if there are no free parameters in the profile
likelihood calculator. This is already done for conditional fits, but
not unconditional fits. Refactor the code such that the same logic is
used for both kinds of fits.
Copy link
Member

@lmoneta lmoneta left a comment

Choose a reason for hiding this comment

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

LGTM!

@guitargeek guitargeek merged commit fc02193 into root-project:master Aug 1, 2025
44 of 48 checks passed
@guitargeek guitargeek deleted the issue-19419 branch August 1, 2025 14:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RF] FrequentistCalculator cannot handle non-parametric Pdfs
3 participants