-
Notifications
You must be signed in to change notification settings - Fork 67
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
expanded verbose for all algorithms, made verbose a boolean for all algorithms #544
Conversation
jaxopt/_src/armijo_sgd.py
Outdated
@@ -224,7 +224,7 @@ class ArmijoSGD(base.StochasticSolver): | |||
maxiter: int = 500 | |||
maxls: int = 15 | |||
tol: float = 1e-3 | |||
verbose: int = 0 | |||
verbose: bool = False |
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.
The idea of using an int
was that we could have several levels of verbosity:
- 1: verbose
- 2: very verbose
- 3: very very verbose
For example, 2 could be used to print linesearch information.
Do you think it's unnecessary?
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.
I did a two level verbose for the solvers with linesearch as you suggested.
I made all verbose types to be boolean or int to be consistent.
Thanks for the suggestion!
jaxopt/_src/armijo_sgd.py
Outdated
next_state, | ||
error_name="Grad. Norm", | ||
additional_info={ | ||
'Obj. Val.': next_state.value, |
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.
I would avoid abbreviations, e.g., I prefer Objective value
here.
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.
Done
ba72a61
to
100c0b6
Compare
100c0b6
to
9e173ac
Compare
9e173ac
to
754e5ee
Compare
I changed the logging for the Zoom linesearch to partially fix the issue #555 (that is avoid printing errors when not required). |
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 Vincent
Replaced "Error" by specific name of error considered and added other information when verbose=True.
Should be useful for debugging more quickly.
All verbose are now boolean too (some were int).