ConfusionMatrix is extremely slow
See original GitHub issueI’m trying to do some grid search on some thresholds for the labels of my models, and the computation of 580 confusion matrices takes about 22 minutes on the GPU and about 8 minutes on CPU (yes, it is slower on the GPU).
I think the issue is probably related to torch.bincount
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Faster method of computing confusion matrix? - Stack Overflow
Is there a faster approach (in PyTorch) to efficiently calculate the confusion matrix for a sample of inputs for image semantic segmentation?
Read more >Re-scaling a confusion matrix after down sampling one class
... model on the full dataset, which would be extremely slow. I was thinking of doing a naive re-scaling of the confusion matrix,...
Read more >Function `confusion_matrix ` in MLJ always fails
Hello, I try to caculate a confusion matrix in Julia, but I meet some ERROR and it is hard for me to debug,...
Read more >Confusion Matrix — Clearly Explained | by Indhumathy Chelliah
In machine learning, the confusion matrix helps to summarize the performance of classification models. From the confusion matrix, ...
Read more >Understanding Confusion Matrix in less confusing way - Medium
So, here comes the role of Recall, Precision, Fall out and other performance evaluation criterion. Recall or True Positive Rate (TPR) : It ......
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 FreeTop 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
Top GitHub Comments
I’m putting together a small-ish code snippet with the benchmarks, I’ll get back to you ASAP