-
Notifications
You must be signed in to change notification settings - Fork 27
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
skip progressbar if needed #516
base: develop
Are you sure you want to change the base?
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #516 +/- ##
========================================
Coverage 89.77% 89.77%
========================================
Files 92 92
Lines 6072 6072
========================================
Hits 5451 5451
Misses 621 621 Continue to review full report in Codecov by Sentry.
|
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.
Thanks Filippo!
User description
Context:
when launching jobs on the command line, using
settings.PROGRESSBAR = False
is not enough because it's just invisible, but some output lines are still skipped.Description of the Change:
Entirely skips creating the
ProgressBar
objectBenefits:
Slightly faster optimizations with no progress bar, cleaner console output
PR Type
enhancement, bug_fix
Description
ProgressBar
object ifsettings.PROGRESSBAR
is set to False, improving console output and optimization speed._optimization_loop
method that handles the optimization steps with an optional progress bar.settings
for accessing thePROGRESSBAR
setting.Changes walkthrough 📝
optimizer.py
Conditional Progress Bar Creation in Optimizer
mrmustard/training/optimizer.py
settings.PROGRESSBAR
is False._optimization_loop
method to handle optimization withoptional progress bar.
settings
.progress bar creation.