Closed
Conversation
Merged
|
Greetings from your nice fit 🤖 !
Check the report carefully, and please buy me a ☕ , or better, a GPU 😉! |
5961d4b to
51500dd
Compare
51500dd to
cb68d61
Compare
Member
Author
|
Hi @tgiani, thanks for looking into this. I've added a bunch of comments and reordered a bit the code so that it is clearer what is done for old fktables and for new |
the higher-level functions that are (usually called) by chi2/plotting/t0 functions
fact that the fktables are already ordered in x1/x2
cb68d61 to
d51b3b6
Compare
Radonirinaunimi
added a commit
that referenced
this pull request
Jun 17, 2025
Radonirinaunimi
added a commit
that referenced
this pull request
Jun 17, 2025
Member
Author
|
All commits from this branch are now in #2317 (I won't delete this branch for now in case we need to split it again, but let me close the PR for the time being) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trying to speed up a few things I noticed the convolutions spent a good fraction of the time just moving things around inside the dataframe.
Now, this is necessary because the old fktables didn't follow any particular order... when loading fktables with pineappl instead this is not the case. Among other things because all fktables get casted to the same array:
nnpdf/validphys2/src/validphys/pineparser.py
Line 226 in bcfe00b
with these changes a full vp-comparefit goes from 40 min to about 20 in my computer.
Note: I have not bothered to port this speed up to old fktables. In principle it could be done just the same by ordering them sensibly after they are loaded.
Note 2: we load the pineappl fktables into an intermediate dataframe that with these changes is no longer necessary, but that's trickier to remove since the fktable is assumed to be a dataframe at various points.