question-mark
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.

I’d like to log the values at two levels, I mean,

iiter = 0
for epoch in range(1, 10):
    for batch in data_loader:
        iiter += 1
        loss = model(batch)
        ...
        wandb.log({"loss": loss}, step=iiter)
     ...
     wandb.log({"loss_mean": loss_mean}, step=epoch)

However, it shows “wandb: WARNING Step must only increase in log calls”. Is there a way to control two level values?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kamo-naoyukicommented, Nov 21, 2020

For example,

wandb.log({"value1": value1}, step=iteration, group="iteration")
wandb.log({"value2": value2}, step=epoch, group="epoch")

Now different categories values are shown in the same level in the UI.

0reactions
sydhollcommented, May 9, 2022

We are closing this issue due to inactivity, please comment to reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logging Levels: What They Are & How to Choose Them
Learn about the most common log levels and how they work. ... There are two main things that you can think of, especially...
Read more >
Understanding logging levels - IBM
Each log message has an associated log level that gives a rough guide to the importance and urgency of the message. Each level...
Read more >
When to use the different log levels - Stack Overflow
I generally subscribe to the following convention: Trace - Only when I would be "tracing" the code and trying to find one part...
Read more >
Log4j – Custom Log Levels - Apache Logging Services
Log4J 2 supports custom log levels. Custom log levels can be defined in code or in configuration. To define a custom log level...
Read more >
Logging Levels: What They Are and How They Help You
Oh-and generally, something called a logging level. ... When it comes to logging, you have two essential and opposing forces, if you will....
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found