Zenith-angle dependent efficiencies#61
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds zenith-angle (per-zenith-bin) efficiency outputs to the classification training pipeline and updates the plotting script to visualize those zenith-binned efficiencies (with TMVA overlays becoming optional).
Changes:
- Extend
evaluation_efficiency()to optionally compute and return per-zenith efficiency curves and persist them asefficiency_zeNin trained model configs. - Update the performance-metrics plotting script to select zenith bins from joblib outputs, handle missing TMVA ROOT overlays gracefully, and write per-bin plots.
- Adjust the SHAP caching test to match the updated
evaluation_efficiency()return shape.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
tests/test_train_classification_shap.py |
Updates the mocked evaluation_efficiency() return value to a (df, dict) tuple. |
src/eventdisplay_ml/scripts/plot_classification_performance_metrics.py |
Adds zenith-bin discovery/selection and optional TMVA overlays; generates per-zenith output plots. |
src/eventdisplay_ml/models.py |
Persists overall and per-zenith efficiency DataFrames into the model config (efficiency, efficiency_zeN). |
src/eventdisplay_ml/evaluate.py |
Refactors efficiency computation into a helper and adds optional per-zenith efficiency calculation/return. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
No description provided.