[proposal] Add never_show_list to VerboseLogger
See original GitHub issueWhen logging a lot of metrics, we sometimes don’t want to show all of them in the console. For example, when looking at the means & stds of 10+ activations.
Proposal is to add a never_show_list
to VerboseLogger
.
class VerboseLogger(Callback):
def __init__(
self,
always_show: List[str] = ["_timers/_fps"],
never_show: List[str] = []
):
"""
Log params into console
Args:
always_show (List[str]): list of metrics to always show
"""
super().__init__(CallbackOrder.Logger)
self.tqdm: tqdm = None
self.step = 0
self.always_show = always_show
self.never_show = never_show
for k in never_show:
assert k not in always_show
That way, it is possible to exclude easily metrics for the console logging while keeping them in the logs files for further analysis using TensorBoard
or plot_metrics
.
act_callback = MonitorActivations(model)
callbacks=[
VerboseLogger(never_show=[*act_callback.metrics_mean, *act_callback.metrics_std]),
act_callback
]
Let me know what you think of this small change.
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
proposal: log/slog: structured, leveled logging · Issue #56345
We propose a new package providing structured logging with levels. Structured logging adds key-value pairs to a human-readable output ...
Read more >Proposal: Structured Logging
We propose adding structured logging with levels to the standard library, to reside in a new package with import path log/slog .
Read more >Enable verbose logging and configure SQL Server Profiler
Describes how to enable verbose logging and configure SQL Server Profiler for troubleshooting issue in Configuration Manager.
Read more >Python logging - Is there something below DEBUG?
In a temp.py file I can do the following: logging. addLevelName(5,"verbose") VERBOSE = 5 logger = logging.
Read more >Verbose logging
Verbose logging records events for each step in the transfer process related to the ... then select Add Points in the Verbose Logging...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Bah let’s keep opened while the PR is being developed. That way people will know the feature is being developed.
Sweet. Thank you!