Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[proposal] Add never_show_list to VerboseLogger

See original GitHub issue

When 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__(
        always_show: List[str] = ["_timers/_fps"],
        never_show: List[str] = []
        Log params into console
            always_show (List[str]): list of metrics to always show
        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) 
    VerboseLogger(never_show=[*act_callback.metrics_mean, *act_callback.metrics_std]),

Let me know what you think of this small change.


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

ostamandcommented, Oct 21, 2019

Bah let’s keep opened while the PR is being developed. That way people will know the feature is being developed.

ostamandcommented, Nov 5, 2019

Sweet. Thank you!

Read more comments on GitHub >

github_iconTop 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 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found