Skip to content

Conversation

@dsarrut
Copy link
Collaborator

@dsarrut dsarrut commented Aug 25, 2025

  • models : ResNet_v2
  • new angle param atan2

dsarrut and others added 20 commits December 19, 2024 11:01
Introduced `MultiTask_v3` model for dual-task predictions (acceptance and energy window classification) using a shared ResNet backbone. Added custom loss calculation in `MultiTask_v3_loss` to handle binary and categorical outputs with class balancing support. Refactored existing code for consistency and modularity.
Introduced support for multiple model types (e.g., MultiTask_v3, ResNet_v2, and xgboost) and enhanced predictions with modular functions. Added handling for plane axis initialization and improved geometric projection for detector plane interactions. Refactored functions for better abstraction and future extensibility.
Eliminated unnecessary modules like sys, cm, np, uproot, and ntpath to streamline the script. This improves code readability and reduces potential overhead from unused dependencies.
This update introduces two new CLI options, `--rr` and `--epoch`, allowing users to override the corresponding parameters in the config file. These additions enhance training flexibility and enable quick parameter adjustments directly on the command line.
    The function no longer sets a default value for the 'rr' parameter, requiring it to be explicitly provided. This change ensures greater clarity and avoids unintended behavior from hidden defaults.
Replaced hardcoded model configuration with dynamic type selection, supporting multiple architectures (Net_v1, ResNet_v2, MultiTask_v3). Optimized DataLoader setup, adjusted training loop parameters, and introduced early stopping in a new `train_nn_TEST` function for efficient training workflows.
Renamed the `input_layer` variable to `fc1` across all relevant classes and methods for improved naming consistency with other layers. This change enhances code readability and aligns variable naming conventions in the model definitions.
Introduced a new angle parametrization using 'atan2' for better computation clarity. Also corrected the tensor type reference in the training loop to use `fc1.weight.dtype` instead of `input_layer.weight.dtype`.
Introduced configurable angle parameterization (acos/atan2) and updated logic accordingly. Deprecated and removed legacy functions (`arf_from_points_to_image_counts_OLD*`) to streamline the codebase. Refactored function and method names to ensure consistency and clarity in angle computation workflows.
Replaced single quotes with double quotes for consistency. Removed outdated or redundant comments and unnecessary line breaks to improve code readability and maintainability.
The `verbose` parameter was removed from `ReduceLROnPlateau` calls to simplify the scheduler configuration. This change ensures consistent and cleaner logging behavior.
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.

2 participants