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.

wandb.plot.histogram only contains part of the data points

See original GitHub issue

Hi, thanks for this excellent product!

I tried to log a histogram, but find that the plot only contains part of the data points. Here are my steps: Firstly I created a wandb Table object with the data that I want to plot. Then I use wandb.plot.histogram to plot the data. But I find the histogram only contains part of the data in the Table object.

The code is as follows,

prob1_data = [[ID_train[i], losses[i]] for i in range(len(ID_train))]
print(len(prob1_data))  #37,115
table1 = wandb.Table(data=prob1_data, columns=['IDs', 'losses'])
wandb.log({
'losses_distribution_for_model1': wandb.plot.histogram(table1, 'losses', title="losses for model1"),
})

Here is the screenshot of the histogram (you can see that there are only a few thousand data points): image Here is the screenshot of the table (there are 37,115 data points): image

Could you please take a look? Thank you very much!

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
MBakirWBcommented, Jul 20, 2022

Hi @LiuCMU ,

If you have more than the allowed points on a chart, we non deterministically downsample before we send your browser the data.

0reactions
exalate-issue-sync[bot]commented, Jul 21, 2022

WandB Internal User commented: LiuCMU commented: Makes sense! Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

wandb.plot.histogram only contains part of the data points #3921
Here are my steps: Firstly I created a wandb Table object with the data that I want to plot. Then I use wandb.plot.histogram...
Read more >
Reference - Documentation - Weights & Biases - Wandb
You can set the y-axis variables to any value you have logged with wandb.log as long as you were logging numbers, arrays of...
Read more >
Log Plots - Documentation - Weights & Biases - Wandb
Histogram. Multi-line. wandb.plot.line(). Log a custom line plot—a list of connected and ordered points on arbitrary axes. data = [[x, y] for (x, ......
Read more >
Wave a wandb.plot() to Visualize – Weights & Biases
How to visualize classification models in a few lines with the W&B Python API. Made by Stacey Svetlichnaya using Weights & Biases.
Read more >
Log Data with wandb.log - Documentation - Weights & Biases
Log Data with wandb.log. Keep track of metrics, videos, custom plots, and more. Call wandb.log(dict) to log a dictionary of metrics, media, or...
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