I’ve noticed both the scitkit method and the for loop method is a bit slow. Is there a vectorized way of implementing this or is this just the nature of constructing the confusion matrix? Also the confusion matrix is updated for
every minibatch correct?