Skip to content

Commit

Permalink
Refactored class_optimize.py
Browse files Browse the repository at this point in the history
- Optimized Imports: Removed unused imports and organized them.
- Refactored Code: Introduced split_individual function for clarity.
- Improved Efficiency: Enhanced penalty calculation and streamlined loops.
- Updated Evaluation Logic: Better handling of penalties in evaluate.
- Type Hints added
- fixed seed option added for automated tests
- verbose comment added, default False

Notes:
- isfloat is only used in flask_server.py
- start_hour is not used in this class
  • Loading branch information
NormannK authored Oct 4, 2024
1 parent 88045c4 commit ee04c45
Showing 1 changed file with 196 additions and 337 deletions.
Loading

0 comments on commit ee04c45

Please sign in to comment.