-
Notifications
You must be signed in to change notification settings - Fork 86
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
Jammy flow integration #728
Open
RasmusOrsoe
wants to merge
31
commits into
graphnet-team:main
Choose a base branch
from
RasmusOrsoe:jammy_flow_integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Jammy flow integration #728
RasmusOrsoe
wants to merge
31
commits into
graphnet-team:main
from
RasmusOrsoe:jammy_flow_integration
Conversation
This file contains 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.
This PR adds support for Normalizing Flows via the jammy_flows package, and therefore supersedes #649. The benefit of using
jammy_flows
is that it contains many different normalizing flows, and that we avoid maintaining that code ourselves :-).The package is not listed as a direct dependency but used as an optional support package.
Specifically, this PR introduces the following major changes:
StandardFlowTask
now uses jammy_flows to construct pdfs of any kind that it supports. These pdfs can be both conditional and non-conditional. Conditional flows can be conditioned on latent model output, event-level information or pulse-level information.NormalizingFlow
which work with theStandardFlowTask
. Usage is similar toStandardModel
.examples/04_training/07_train_normalizing_flow.py
has_jammy_flows_package()
is added undergraphnet.utils.imports
to check if its installed, and is used in a few places to make sure that the code runs also for people who choose not to install jammy_flows.Minor changes:
repeat_labels
is added as an argument toGraphDefinition
- ifTrue
, event-level information, .e.genergy
is repeated row-wise to match the number of pulses in the event. This feature was added in this PR to make it possible to build flows that learn pulse-level pdfs conditioned on event-level information.**kwargs
forTrainer
is added forpredict
-methods inEasySyntax
to allow the same level of control overTrainer
arguments as we have for.fit