Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add resample_pseudodata flag #2088

Merged
merged 3 commits into from
May 22, 2024
Merged

Conversation

RoyStegeman
Copy link
Member

@RoyStegeman RoyStegeman commented May 22, 2024

For parameter fits it is important not to distort the pseudodata sampling distribution. This PR adds a flag resample_negative_pseudodata that can be set to False to also accept negative pseudodata values instead of resampling.

Copy link
Member

@scarlehoff scarlehoff left a comment

Choose a reason for hiding this comment

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

I guess this will be a runcard parameter?

Could you add it either to docs or to some runcard example (even with the default value) just to signal that it exists.

validphys2/src/validphys/pseudodata.py Outdated Show resolved Hide resolved
validphys2/src/validphys/pseudodata.py Outdated Show resolved Hide resolved
validphys2/src/validphys/pseudodata.py Outdated Show resolved Hide resolved
@RoyStegeman RoyStegeman requested a review from scarlehoff May 22, 2024 13:56
@andreab1997
Copy link
Contributor

Just a question (maybe you already said and I do not remember): have you tried this with a MHOU fit? If yes, how much time does it take to get all pseudodata positive?

@RoyStegeman
Copy link
Member Author

This doesn't do any resampling and just accepts also negative xsecs

@RoyStegeman RoyStegeman force-pushed the add_resample_pseudodata_flag branch from 5e52129 to 8bc67b7 Compare May 22, 2024 14:40
@andreab1997
Copy link
Contributor

This doesn't do any resampling and just accepts also negative xsecs

Ok yes but I understood you did try the resampling no?

@RoyStegeman
Copy link
Member Author

Yes I did do MHOU fits with resampling (so the same as in master now), but I didn't track how much time that took

@RoyStegeman RoyStegeman merged commit 598d7a1 into master May 22, 2024
5 of 6 checks passed
@RoyStegeman RoyStegeman deleted the add_resample_pseudodata_flag branch May 22, 2024 15:40
@scarlehoff scarlehoff mentioned this pull request Jun 5, 2024
34 tasks
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.

3 participants