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.

Repeatedly logging confusion matrix results in overlapping numbers

See original GitHub issue

wandb --version && python --version && uname

  • Weights and Biases version: wandb, version 0.9.3
  • Python version: Python 3.7.6
  • Operating System: Linux

Description

What I want: log confusion matrix for multiclass predictions on the validation set after every epoch, and have them logged separately so I can flip through them

What happened: The numbers come up overlapped on a single plot:

Screen Shot 2020-07-13 at 8 22 03 PM

What I Did

I’m using it through the pytorch-lightning API. The validation_epoch_end method returns

{ 'log': {'val_loss': mean_losses,
             'confusion_matrix': confusion_matrix(y, pred, atom_syms)}}

and the ‘log’ key is simply logged via the wandb run object. confusion_matrix is from wandb.sklearn.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
issue-label-bot[bot]commented, Jul 13, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.68. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
LucaMalagutticommented, May 3, 2022

Hi Sooheon, logging confusion matrices across steps isn’t support natively yet. The plotly way recommended by Mathïs is the recommended way to log them across steps right now.

Are there updates on this? I’m also looking to log a different confusion matrix for every epoch/step

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plotted Confusion Matrix values overlapping each other, total ...
How can I increase spacing between the labels on x-axis and y-axis, so that the plotted results inside the confusion matrix do not...
Read more >
How to calculate a confusion matrix? · Issue #1870 - GitHub
This in the end aggregate over total number of predicted images. All you need to do is: construct 3D array (N,H,W); create the...
Read more >
Two different levels of class overlapping: 0% and 60%
For a two-class problem, these can be described using the confusion matrix as plotted in Table 1. In the present work, we are...
Read more >
Neural Network - Confusion matrix values overlapping
I use Neural network to classify 10 classes. The confusion matrix values are overlapping and hard to interpret. Is there any way I...
Read more >
Fair evaluation of classifier predictive performance based on ...
The behavior of Balanced AC_1 is compared against that of several well-known performance measures based on binary confusion matrix.
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