-
Notifications
You must be signed in to change notification settings - Fork 87
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
Energy Task preventing over/under-flow #352
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Aske-Rosted,
Thanks for this contribution! I have made a few "inline" suggestions that you can consider using. Please also consider setting up pre-commit hooks, see our contributing guide as currently the automated black and flake8 checks are failing. Let me know if it would be beneficial to talk this over at some point. :)
@asogaard @Aske-Rosted Just wanted to add here that I also don't use the original class for the same reason. Perhaps we should consider if it should remain? |
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Aske-Rosted,
I have added one suggestion based on the automated mypy
check. Another point: Perhaps we should remove the exist EnergyReconstruction
-> EnergyReconstructionWithPower
and instead just call the Task
you're proposing EnergyReconstruction
, also based on @RasmusOrsoe's point?
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
…n graphnet/src/graphnet/models/task/reconstruction.py
…t/models/task/reconstruction.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant!
Psst, @Aske-Rosted ... you're free to merge this anytime you want. :) |
Not sure how to, thought it would happen automatically when approved... |
Energy Task preventing over/under-flow
This task should be useful if experiencing over/underflow errors leading to NaN's in the training process.